-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scriptLoad command for UnifiedJedis #3151
Comments
@yangbodong22011 Few questions to give it more thoughts:
|
I think we can just kill |
In JedisCluster, what should happen to the methods that are currently part of ScriptingControlCommands? Should we throw UnsupportedOperationException or execute in a random node? |
I think the following is better (although we currently don't have an option for |
Until this is implemented, how would I use Overall it feels UnifiedJedis is very incomplete, there's no Pipelining/Multi/Transaction, commands such as PING/INFO/LOLCAT are missing entirely, etc. But I cannot use Jedis because I need the JSON commands which are only implemented in UnifiedJedis. |
If you are using JedisPooled, you can send any String as sampleKey. Yes, it is not well documented because of low resources and contributions. But the term sampleKey has been in Jedis for some time. So the idea was that if someone was not having issues with it previously, would not have issues afterwards. To answer the second part of your comment, UnifiedJedis is not meant for connection bound commands like Jedis (class). Pipelining/Multi/Transaction are connection bound features. PING is not really defined if it is not connection bound. INFO is a connection bound command. And I don't recognize LOLCAT. Because of these, those did not make sense to include in UnifiedJedis. As for JSON commands, those are available in Pipelining/Multi/Transaction. For JSON with other things, please explain [1] why these should co-exist in same class. We can then discuss how to implement it or at least ease the adaptation for users. Thanks [1] in a separate Issue/Discussion. |
Maybe we shouldn’t split
script load
andeval/evalsha
to addScriptingControlCommands
since they are almost always used together.The text was updated successfully, but these errors were encountered: