Redis guides
Hands-on guides that cover Redis. Every command is run and verified on a live server before it is published.
GuideInstall Redis and the Data Model
Install Redis on a bare Ubuntu 24.04 slice, watch a repeat read become a cache hit served from memory, then learn the five redis data types your app will use.
GuideCaching Patterns: Cache-Aside, TTL and Eviction
Put redis caching in front of a slow store: cache-aside with GET and SET, expiry with EX and TTL, then eviction under a memory cap.
GuidePersistence and Durability: RDB and AOF
Make redis persistence real: trigger an RDB snapshot with BGSAVE, enable the append-only file, and prove the data survives a full restart.
GuideSession Store and Rate Limiter
Build a redis rate limiter with INCR and EXPIRE that blocks the sixth request, and store a login session as a hash with a sliding TTL that refreshes on every access.
GuidePub/Sub and Simple Queues
Use redis pub/sub to fan a message out to a live subscriber, move work through a list queue with LPUSH and BRPOP, then meet Streams as the durable upgrade.
GuideSecurity Hardening
Redis security on a live server: require a password, stay on loopback, rename risky commands, prove TLS encrypts the wire, and firewall the port.