00 /What You Will Learn
By the end you will be able to
- Say what Redis is, and what it is good and bad at.
- Store, read, count and delete values with
SET,GET,INCRandDEL. - Make values expire by themselves with
EXandTTL, and readTTL -1and-2. - Pick the right type for the job: string, list, hash, set or sorted set.
- Explain why
KEYS *is dangerous in production and what to use instead. - Explain what "atomic" means, and why one command is safe but two are not.
Before you start
You need Docker Desktop running and the basics from Lab 01 (Docker Compose Basics). No Redis knowledge is needed. The lab starts a Redis server with no password, for practice only.
In plain words
Redis is a very fast store that keeps its data in memory (RAM) instead of on disk. Like the whiteboard behind the shopkeeper: today's rates, who is waiting, a running count. Reading and writing takes a fraction of a millisecond.