Skip to content

Commit

Permalink
docs: update redis-consistence, fix doocs#5
Browse files Browse the repository at this point in the history
Update Cache Aside Pattern
Fix doocs#5
  • Loading branch information
yanglbme committed Dec 25, 2018
1 parent 68291c2 commit ad354d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/high-concurrency/redis-consistence.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
### Cache Aside Pattern
最经典的缓存+数据库读写的模式,就是 Cache Aside Pattern。
- 读的时候,先读缓存,缓存没有的话,就读数据库,然后取出数据后放入缓存,同时返回响应。
- 更新的时候,**先删除缓存,然后更新数据库**
- 更新的时候,**先更新数据库,然后再删除缓存**

**为什么是删除缓存,而不是更新缓存?**

Expand Down

0 comments on commit ad354d4

Please sign in to comment.