This was confusing me because the existing documentation suggested the first argument was the script itself, but the docs indicate that argument should contain the Base16-encoded SHA1 hash of the script.
I have a little wrapper function which accepts the script itself, and performs the encoding, but you might not like to add something like cryptonite as a dependency here?
This was confusing me because the existing documentation suggested the first argument was the script itself, but the docs indicate that argument should contain the Base16-encoded SHA1 hash of the script.
I have a little wrapper function which accepts the script itself, and performs the encoding, but you might not like to add something like
cryptonite
as a dependency here?See https://redis.io/commands/eval#bandwidth-and-evalsha