Concept Flow - EVALSHA for cached scripts
Write Lua script
Load script with SCRIPT LOAD
Get SHA1 hash of script
Run script with EVALSHA using SHA1
If SHA1 not found -> Error
Optionally reload script and retry
You write a Lua script, load it into Redis to get a SHA1 hash, then run it using EVALSHA with that hash. If Redis doesn't have the script cached, you get an error and can reload it.