Skip to content

Commit f38c631

Browse files
authored
Merge pull request Snailclimb#1556 from nonbutAworker/main
策略名前后叫法不一致,更新一下redis缓存策略文档
2 parents 704a8de + 5498716 commit f38c631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/database/redis/3-commonly-used-cache-read-and-write-strategies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Read/Write Through Pattern 中服务端把 cache 视为主要数据存储,从
9999

100100
![](https://img-blog.csdnimg.cn/img_convert/9ada757c78614934aca11306f334638d.png)
101101

102-
Read-Through Pattern 实际只是在 Cache-Aside Pattern 之上进行了封装。在 Cache-Aside Pattern 下,发生读请求的时候,如果 cache 中不存在对应的数据,是由客户端自己负责把数据写入 cache,而 Read Through Pattern 则是 cache 服务自己来写入缓存的,这对客户端是透明的。
102+
Read-Through Pattern 实际只是在 Cache-Aside Pattern 之上进行了封装。在 Cache-Aside Pattern 下,发生读请求的时候,如果 cache 中不存在对应的数据,是由客户端自己负责把数据写入 cache,而 Read-Through Pattern 则是 cache 服务自己来写入缓存的,这对客户端是透明的。
103103

104104
和 Cache Aside Pattern 一样, Read-Through Pattern 也有首次请求数据一定不再 cache 的问题,对于热点数据可以提前放入缓存中。
105105

0 commit comments

Comments
 (0)