Architecture & Thinking
Aug 11, 2023 · Databases
Mastering Redis Cache Expiration: Commands, Lazy Deletion & Scheduled Cleanup
This article explains how Redis handles cache expiration using EXPIRE options, lazy deletion triggered by client access, and periodic cleanup tasks configured by the hz setting, while also covering implementation details, code examples, and the impact on memory management.
Cache ExpirationLazy DeletionPeriodic Deletion
0 likes · 9 min read