# Redis CLI cache demo (run only on a local/test Redis instance) SET article:42 "cached body" EX 300 GET article:42 TTL article:42 HSET article:42:meta title "Redis cache" updated_at "2026-09-17T00:00:00Z" HGETALL article:42:meta DEL article:42 article:42:meta # Application pattern: read cache -> on miss query DB -> SET ... EX .