After updating a record in the database, what is a common cache strategy?
Practice this question from Quiz: Redis Cache Design for Interviews, with options and an explanation.
Question
After updating a record in the database, what is a common cache strategy?
Option A — Correct answer
Delete or refresh the affected cache key
Option B
Ignore the cache forever
Option C
Only update Redis and skip the database
Option D
Disable all reads
Explanation
Invalidating or refreshing avoids serving stale data after writes.