DEV Community

W.Sousa
W.Sousa

Posted on

Caching Best Practices

Lazy caching
When an user request a data, the application will check if the data exists in cache(cache hit), if so, user receives cache data, but when the data do not exist in cache(cache miss), so the data its created for next requests.

Write-through
Following this, cache its set always a data is updated, ex:
if I update the user profile from my app, the cache will updated as well.
Time-to-live

Top comments (0)