rediscala icon indicating copy to clipboard operation
rediscala copied to clipboard

Configure the database number with SentinelMonitoredRedisClient ?

Open mmagn opened this issue 9 years ago • 2 comments

Hi,

How can I configure the db number when creating a SentinelMonitoredRedisClient ? Is it possible ?

Thanks for your help

mmagn avatar Feb 04 '16 17:02 mmagn

Yeah you need to make that line https://github.com/etaty/rediscala/blob/ecef67f9e5fa5e2e3b41fe6640d4824dc9b161f1/src/main/scala/redis/Redis.scala#L150 a parameter of SentinelMonitoredRedisClient createClient: (String, Int) => RedisClient

would you like to create a pull request?

etaty avatar Feb 04 '16 19:02 etaty

Yes, can you review it ? https://github.com/etaty/rediscala/pull/127

mmagn avatar Feb 05 '16 11:02 mmagn