It is a method that allows you to update cache every time you make updates in a database. This method ensures that your cache is always up to date when you write something to your database however, you will end up with too much unnecessary data in your cache that you probably don’t need. In this approach, you definitely have to implement cache invalidation.

Transclude of Write-through-cache.excalidraw