1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

fix: Redis keyspace notifications

This commit is contained in:
Seeker32 2024-12-21 23:15:51 +08:00
parent efa2641203
commit ab15a79551

View File

@ -33,7 +33,7 @@ Redis 中有很多默认的 channel这些 channel 是由 Redis 本身向它
我们只需要监听这个 channel就可以拿到过期的 key 的消息,进而实现了延时任务功能。
这个功能被 Redis 官方称为 **keyspace notifications** ,作用是实时监控实时监控 Redis 键和值的变化。
这个功能被 Redis 官方称为 **keyspace notifications** ,作用是实时监控 Redis 键和值的变化。
### Redis 过期事件监听实现延时任务功能有什么缺陷?