NetEase Game Operations Platform
Jul 27, 2019 · Databases
Using Redis Secondary Indexes to Replace FLUSHDB for Targeted Cache Invalidation
The article examines the risks of using the dangerous FLUSHDB command in Redis, explores common alternatives like SCAN, async deletion, and expiration, and proposes a secondary‑index solution using sets and sorted sets to efficiently invalidate only the affected cache entries without blocking the service.
Cache InvalidationFLUSHDBRedis
0 likes · 11 min read