-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
eval functions (eval, eval* ...) require some argument, even if you specify 0 keys. #204
Comments
Hi there, So this is an interesting case. According to the Redis command spec, Obviously, as you showed though, I could mod the spec->edn generator to handle Do you have any practical application in mind? |
This is technically in violation of the current docs (Ref. https://goo.gl/iy74on), but seems to match actual Redis behaviour. The docs do seem to be buggy, so choosing to match actual behaviour here- though I'm not sure how useful this is in practice.
Yup, for example using a lua script to insert multiple key-value pairs in a single call by passing the stuff as JSON. More concise than using |
Not exactly, keys are required if the script operates on keys. The page you linked even has the above
(My JSON scenario above is an example of the described single instance abuse) |
So specifically, I meant the Redis command spec. Arguably this should mark the
Would just note that this could cause problems if there's a chance you might want to use Redis Cluster in future. (Since you're still effectively using keys, just not providing info on them to Redis).
Just noting that another option would be MSET, which would be quite concise- while retaining compatibility with Cluster. In any case, added support in Hope that helps, cheers! |
Example:
Carmine (fails):
Carmine (works):
Redis-cli:
The text was updated successfully, but these errors were encountered: