mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-08-05 20:31:37 +08:00
update redis
This commit is contained in:
parent
8b204d0cc4
commit
fa935f8cc5
@ -426,12 +426,12 @@ public Object getObjectInclNullById(Integer id) {
|
|||||||
|
|
||||||
#### 有哪些解决办法?
|
#### 有哪些解决办法?
|
||||||
|
|
||||||
Redis服务不可用:
|
**针对Redis服务不可用的情况:**
|
||||||
|
|
||||||
1. 采用Redis集群,避免单机出现问题整个缓存服务都没办法使用。
|
1. 采用Redis集群,避免单机出现问题整个缓存服务都没办法使用。
|
||||||
2. 限流,避免同时处理大量的请求。
|
2. 限流,避免同时处理大量的请求。
|
||||||
|
|
||||||
热点缓存失效:
|
**针对热点缓存失效的情况:**
|
||||||
|
|
||||||
1. 设置不同的失效时间比如随机设置缓存的失效时间。
|
1. 设置不同的失效时间比如随机设置缓存的失效时间。
|
||||||
2. 缓存永不失效。
|
2. 缓存永不失效。
|
||||||
|
@ -335,4 +335,17 @@
|
|||||||
- <https://www.studytonight.com/operating-system>
|
- <https://www.studytonight.com/operating-system>
|
||||||
- <https://www.geeksforgeeks.org/interprocess-communication-methods/>
|
- <https://www.geeksforgeeks.org/interprocess-communication-methods/>
|
||||||
- <https://juejin.im/post/59f8691b51882534af254317>
|
- <https://juejin.im/post/59f8691b51882534af254317>
|
||||||
- 王道考研操作系统知识点整理: https://wizardforcel.gitbooks.io/wangdaokaoyan-os/content/13.html
|
- 王道考研操作系统知识点整理: https://wizardforcel.gitbooks.io/wangdaokaoyan-os/content/13.html
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user