Skip to content

Commit ad354d4

Browse files
committed
docs: update redis-consistence, fix doocs#5
Update Cache Aside Pattern Fix doocs#5
1 parent 68291c2 commit ad354d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/high-concurrency/redis-consistence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
### Cache Aside Pattern
1313
最经典的缓存+数据库读写的模式,就是 Cache Aside Pattern。
1414
- 读的时候,先读缓存,缓存没有的话,就读数据库,然后取出数据后放入缓存,同时返回响应。
15-
- 更新的时候,**先删除缓存,然后更新数据库**
15+
- 更新的时候,**先更新数据库,然后再删除缓存**
1616

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

0 commit comments

Comments
 (0)