Reputation: 573
My application makes a lot of calls to Redis, I dont want to create a client everytime. Is there a way I can create a connection pool and use connections from the pool whenever I need to connect to Redis. Please note that redis is in single server mode here.
Upvotes: 1
Views: 9990
Reputation: 10783
With Redisson you don't need to create a connection pool because Redisson already maintains it for you. Just create Redisson instance as singleton (it's fully threadsafe) and use it.
Upvotes: 5