A cache-aside implementation suffers a thundering herd when a hot key expires. Which mitigation is most appropriate?
- A Remove the TTL entirely
- B Use a short-lived lock so one caller repopulates while others serve stale or wait (correct answer)
- C Increase the cache size
- D Switch to allkeys-random
Shortcut: A mutex or lock key ensures a single rebuild on expiry. Adding TTL jitter and probabilistic early refresh further spreads the load.