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

Merge pull request #2568 from Seeker32/fix

fix: Redis keyspace notifications
This commit is contained in:
Guide 2024-12-23 21:58:50 +08:00 committed by GitHub
commit de23581229
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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