Redis EVALSHA

Redis EVALSHA executes a Lua script that has already been loaded into the Redis script cache, using its SHA1 digest as the identifier. Applications commonly load scripts with SCRIPT LOAD and handle NOSCRIPT by loading the script again when necessary.

Learn this concept

Lesson 1.21 · Redis atomicity, transactions, Lua and failure handling

Used in exercises

Exercise 1.29 · Optional: Token bucket in Redis with Lua and EVALSHA
Prerequisite conceptsRedis Lua scripts