Common class to RedisClient, RedisClusterClient, RedisSentinelClient

11 views
Skip to first unread message

Oscar Besga

unread,
Dec 28, 2025, 6:35:30 AM12/28/25
to Jedis
Hi

I'm looking at the new classes RedisClient, RedisClusterClient, RedisSentinelClient in the 7.2.0 release. They operate like the old JedisPooled, more or less.
But because I'm working on a utilities library, JedisExtraUtils, using one of the will limit how the users can interact with my code.

So, to use a common class, I should go with UnifiedJedis; which covers all the Redis commands and is the parent of all three.
Then the client can use one or another freely.

Is my approach rigth ?

https://github.com/oscar-besga-panel/JedisExtraUtils

Oscar Besga

unread,
Feb 25, 2026, 11:53:15 AMFeb 25
to Jedis
I have a new class that gaps the bridge between the old JedisPool and the new UnifiedRedis (which is parent to RedisClient, RedisClusterClient and so on...)

Here it is, if you could take a look it would be much appreciated

Tks

Reply all
Reply to author
Forward
0 new messages