What method does Redisson use?
Redisson is a distributed Java object and service collection based on Redis, offering a user-friendly API for implementing distributed objects and services. Redisson primarily employs the following methods:
- Retrieve a distributed bucket object used for storing Java objects.
- getList(): obtain a distributed list object for storing a list of Java objects.
- getSet(): Retrieve a distributed collection object for storing a collection of Java objects.
- getMap(): Obtain a distributed mapping object for storing key-value pairs.
- getLock(): acquire a distributed lock object for implementing distributed locking.
- getSemaphore(): acquire a distributed semaphore object for implementing distributed semaphores.
- getTopic(): Obtain a distributed publish-subscribe topic object to facilitate the publish-subscribe pattern.
- Obtain a distributed atomic long object to implement a distributed counter.
- getRemoteService(): Obtain a distributed service object for remote method invocation.
The above methods are just a fraction of what Redisson offers; there are many more methods available for implementing more complex distributed applications.