更新缓存策略方式常见的有下面几种:
先更新缓存,再更新数据库
先更新数据库,再更新缓存
先删除缓存,再更新数据库
先更新数据库,再删除缓存
https://developer.aliyun.com/article/712285
https://bbs.huaweicloud.com/blogs/240931
https://mp.weixin.qq.com/s?__biz=MjM5NzE1MDA0MQ==&mid=2247513306&idx=2&sn=3b4859b69b3bdbc7b94df9dbaaa94b9c&chksm=a6dc98ec91ab11fa73735d5b3df62e92abc695a3781759d54e977f605b52bf1d789dfe63b9a6&scene=132#wechat_redirect