Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I have a lua script and I want to know its sha digest value without using scriptLoad(), how can I do that?
I tried to use Apache DigestUtils but its digest hash value is different from what I got by calling scriptLoad(). The values are the same on my local, but when running this in the pipeline in the cloud, their values are different.
If I could get the SHA1 string of the lua script, I can then directly call evalsha(digest), so that I don't have to call scriptLoad() for each jvm, as I have many jvms using the same redis instance.
Currently each application instance (when it is started), trying to put the lua script into redis cache by calling scriptLoad(), which is unnecessary. But the application does not know if the script is already on redis cache because it does not know the SHA1.
Any suggestion is highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions