3 Nisan 2023 Pazartesi

Cache Stratejileri - Cache Access Patterns Refresh-ahead

Giriş
Şeklen şöyle


Açıklaması şöyle
.. it refreshes the cache data before its expiration time,it is done for hot-data, the data we expect to be requested in the near future.

Approach
1. Supposed the cached data’s expiration time is 60 seconds and the refresh-ahead factor is 0.5.
2. If the cached object is accessed after 60 seconds, Coherence will perform a synchronous read from the cache store to refresh its value.
3. If the cached data is accessed after 30 seconds, said 35th second, the cache returns the data and asynchronously refreshes the data.

Hiç yorum yok:

Yorum Gönder