1 Comment

In Write-Around and Cache-Aside mechanism, what happens in case of a cache hit but the data isn't updated from the persistent datastore?

1. X = 10 // (DB: X = 10, Cache: Empty)

2. Get X // (Cache miss so cache is updated, DB: X = 10, Cache: X = 10)

3. X = 7 // What happens here?

4. Get X // What happens here?

Expand full comment