# Cache Consistency & Coherence

## Cache Coherence

(TODO)

## Cache Consistency

(TODO)

## References

* Blogs
  * [Consistency between Redis Cache and SQL Database](https://yunpengn.github.io/blog/2019/05/04/consistent-redis-sql/)
  * [Read-Through, Write-Through, Write-Behind Caching and Refresh-Ahead](https://docs.oracle.com/cd/E13924_01/coh.340/e13819/readthrough.htm)
  * [Cache Coherence Problem and Approaches](https://medium.com/@TechExpertise/cache-coherence-problem-and-approaches-a18cdd48ee0e)
  * [High-Performance Caching with NGINX and NGINX Plus](https://www.nginx.com/blog/nginx-high-performance-caching/)
* Videos
  * Georgia Tech - HPCA
    * [Cache Coherence Problem](https://www.youtube.com/watch?v=TMJj015C93A)
    * [How to Get Coherence](https://www.youtube.com/watch?v=In8RZg345pM)
    * [Write Update Snooping Coherence](https://www.youtube.com/watch?v=rLmS02gsEAk)
    * [Write Invalidate Snooping Coherence](https://www.youtube.com/watch?v=uLikXssApZk)
    * [MSI Coherence](https://www.youtube.com/watch?v=gAUVAel-2Fg\&t=310s)
    * [Directory Example](https://www.youtube.com/watch?v=lZZYILcQ68Y)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zhenghe.gitbook.io/open-courses/system-design/cache-consistency-and-coherence.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
