# springboot-redis-expired **Repository Path**: myframework/springboot-redis-expired ## Basic Information - **Project Name**: springboot-redis-expired - **Description**: redis 实现监听过期key - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-02-01 - **Last Updated**: 2024-02-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README redis.conf 中需要 notify-keyspace-event Ex 由于配置redis地址 #默认值就是本地 6379 所以我没有修改 RedisListenerConfig 类发布一个监听器, "__keyevent@0__:expired" RedisKeyExpirationListener 类中的 onMessage 处理过期后的key TestRecall 在启动项目的时候会向redis中添加一个key