Transaction#select() replacement since Jedis version 4 #3638
-
Hello. We are in the process of upgrading the Jedis dependency for one of our services from version 3.7.0 to the latest version 5.0.0. In the process, we encountered an event that prevents us from using the previous code.
As you can see, we used method call, but since version 4 - it is removed. What would be the closest equivalent (or is it needed at all) of the call since Jedis version 4? I would also like to know why this method was removed. I have looked for a relevant statement in the issues and documentation, but cannot find a clear reason.
Is it because it is an anti-pattern against Redis design philosophy? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I consider the following method as an alternative. I would like to minimize the impact of code changes in the recommended manner. |
Beta Was this translation helpful? Give feedback.
-
Hi @YAMAGON4210 |
Beta Was this translation helpful? Give feedback.
The reason is quite simple. Redis Cluster doesn't support SELECT commands. Using SELECT prevents your application code from being scaled when needed with Redis Cluster.