如何根据业务来选择缓存模式和组件

如上图,业务系统读写缓存有三种模式: Cache Aside(旁路缓存) Read/Write Through(读写穿透) Write Behind Caching(异步缓存写入) 1. Cache Aside (旁路缓存) 如上图所示,在Cache Aside中: 读/写 对于写,是更新 DB 后,直接将 key 从 cache 中删除,然后由 DB 驱动缓存数据的更新。 对于读,是先读 cac
相关文章
相关标签/搜索