由于 cache 能存的数据有限,你需要选择最适合用例的 cache update strategy。
Cache 模式(Cache-aside / Lazy loading)
<p align="center"> <img src="/handbook/system-design/images/ONjORqk.png"> <br/> <strong><a href="http://www.slideshare.net/tmatyashovsky/from-cache-to-in-memory-data-grid-introduction-to-hazelcast">资料来源:从 cache 到内存数据网格</a></strong> </p>应用从 storage 读写。cache 不直接和 storage 交互,应用执行以下步骤:
正在验证访问权限...