Skip to content

Commit 2771573

Browse files
committed
Update Redis.md
1 parent 4850fba commit 2771573

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/database/Redis/Redis.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ Redis 通过 MULTI、EXEC、WATCH 等命令来实现事务(transaction)功能。
251251

252252
在传统的关系式数据库中,常常用 ACID 性质来检验事务功能的可靠性和安全性。在 Redis 中,事务总是具有原子性(Atomicity)、一致性(Consistency)和隔离性(Isolation),并且当 Redis 运行在某种特定的持久化模式下时,事务也具有持久性(Durability)。
253253

254+
补充内容:
255+
256+
> 1. redis同一个事务中如果有一条命令执行失败,其后的命令仍然会被执行,没有回滚。(来自[issue:关于Redis事务不是原子性问题](https://github.com/Snailclimb/JavaGuide/issues/452)
257+
> 2.
258+
254259
### 缓存雪崩和缓存穿透问题解决方案
255260

256261
**缓存雪崩**

0 commit comments

Comments
 (0)