Difficulty: Advanced
What is the purpose of SCRIPT LOAD and EVALSHA?
`SCRIPT LOAD` uploads a Lua script and returns a SHA1 hash. `EVALSHA` runs the script using that hash, saving bandwidth by not sending the full code every time.
Lua, Performance
JavaScript is required for the interactive version of this page, including the code playground and progress tracking. Browse all InternHack tutorials.