Cache Coherency
Cache coherencyĀ is the uniformity of shared resource data that ends up stored in multipleĀ local caches
Incoherent Cache
Coherent Cache
Solutions
Saw this in SE464.
Three basic solutions:
- Expire cache entries after a certain TTL (time to live)
- After writes, send new data or an invalidation message to all caches
- This creates a coherent cache. But it adds performance overhead.
- Donāt every change your data! For example, create a new filename every time you add new data. This is called versioned data.