parent
d283ce7c67
commit
9a2bc75646
5 changed files with 55 additions and 10 deletions
@ -1,10 +1,14 @@ |
|||||||
# Refresh-ahead |
# Refresh-ahead |
||||||
|
|
||||||
You can configure the cache to automatically refresh any recently accessed cache entry prior to its expiration. Refresh-ahead can result in reduced latency vs read-through if the cache can accurately predict which items are likely to be needed in the future. |
You can configure the cache to automatically refresh any recently accessed cache entry prior to its expiration. |
||||||
|
|
||||||
|
Refresh-ahead can result in reduced latency vs read-through if the cache can accurately predict which items are likely to be needed in the future. |
||||||
|
|
||||||
## Disadvantage of refresh-ahead: |
## Disadvantage of refresh-ahead: |
||||||
- Not accurately predicting which items are likely to be needed in the future can result in reduced performance than without refresh-ahead. |
- Not accurately predicting which items are likely to be needed in the future can result in reduced performance than without refresh-ahead. |
||||||
|
|
||||||
|
![](https://i.imgur.com/sBXb7lb.png) |
||||||
|
|
||||||
To learn more, visit the following links: |
To learn more, visit the following links: |
||||||
|
|
||||||
- [Getting started with Refresh-ahead](https://github.com/donnemartin/system-design-primer#refresh-ahead) |
- [From cache to in-memory data grid](http://www.slideshare.net/tmatyashovsky/from-cache-to-in-memory-data-grid-introduction-to-hazelcast) |
@ -1 +1,8 @@ |
|||||||
# Caching Strategies |
# Caching Strategies |
||||||
|
|
||||||
|
Since you can only store a limited amount of data in cache, you'll need to determine which cache update strategy works best for your use case. Here is the list of cache update strategies: |
||||||
|
|
||||||
|
- Cache-aside |
||||||
|
- Write-through |
||||||
|
- Write-behind |
||||||
|
- Refresh-ahead |
Loading…
Reference in new issue