00 /What You Will Learn
By the end you will be able to
- Say what Lua is and why Redis has it built in.
- Read and write a short script using
local,if,for, tables and... - Use
EVALwithKEYSandARGV, andredis.callto run Redis commands inside a script. - Reproduce an oversell bug caused by "check, then act" as two commands, and fix it with one script.
- Explain
EVALSHA, the no-rollback rule, and why a slow script blocks everyone.
Before you start
Finish Lab 06 (Redis Basics) first, or be comfortable with SET, GET, INCR and DECR. You do not need to know Lua. This page teaches the small part you need.