-
张3
发布于 2025-07-23
-
收藏
实现步骤修改Redis配置文件打开redis.conf 文件,搜索 “notify-keyspace-events”找到原本的notify-keyspace-events " ",修改为 “notify-keyspace-events Ex”,至此Redis 就支持Key过期事件的监听。Spring Boot集成Redis可以参考文章 https://juejin.cn/post/7102801673491808287 创建监听类,实现MessageListener...