Common ground for RedisClient, RedisClusterClient, RedisSentinelClient #4386
Replies: 1 comment 1 reply
-
|
Hi @oscar-besga-panel |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions