Daily Term: Write-Through Cache
Write-Through Cache
Write-Through Cache is a caching strategy where data is written to both the cache and the underlying storage system at the same time. For example, when updating a user’s profile, the new data is written to both Redis (cache) and a database, ensuring consistency between the two. This approach minimizes the risk of stale data but can introduce latency since every write operation involves both the cache and storage.
Date: 2025-07-24