Caching · Multiple choice

After updating a row in the database, why do most cache-aside systems delete the cache key rather than write the new value into it?

hard Consistency

Options

Why

If writer A updates the database then writer B does, but B's cache write lands first and A's second, the cache keeps A's old value until the TTL ends. After a delete, the next read loads whatever the database holds now.

Review this in your daily deck All cards in Caching