Write-through cache.
also: write-through · write throughWrites go to the cache, which synchronously writes them to the database, so cache and database stay in step.
the two-minute refresher
- The write returns only after both cache and database are updated.
- Reads right after a write hit fresh data in the cache.
- Every write pays both latencies, and rarely read data fills the cache.
- Often paired with read-through.