diff --git a/docs/database/redis/3-commonly-used-cache-read-and-write-strategies.md b/docs/database/redis/3-commonly-used-cache-read-and-write-strategies.md index 00b6535aa5e9652f9a8fd8145b72961f57e07fbc..63c8b11688142ffdf10c9c084e545526237316f4 100644 --- a/docs/database/redis/3-commonly-used-cache-read-and-write-strategies.md +++ b/docs/database/redis/3-commonly-used-cache-read-and-write-strategies.md @@ -5,6 +5,18 @@ tag: - Redis --- +###我的补充:这里写的很不清楚 +https://zhuanlan.zhihu.com/p/86396877 +1. 先更新数据库再删除缓存 +业界最常用的方案, 虽然也不是完美,但是发生问题的几率很小。 +2. 如果先删除缓存,再跟新数据库,有明显的数据不一致问题,缓存中可能被写入错误数据。 +3. + + + + + + 看到很多小伙伴简历上写了“**熟练使用缓存**”,但是被我问到“**缓存常用的3种读写策略**”的时候却一脸懵逼。