1
0
mirror of synced 2026-10-20 22:56:14 +08:00

🎨 #3843 【基础架构】修复 Spring Boot 3(Spring Data Redis 3.x)下 RedisTemplate.getExpire 返回值语义变化导致的过期判断/缓存失效问题

This commit is contained in:
Copilot
2026-01-14 17:05:39 +08:00
committed by GitHub
parent 3b5ead664c
commit 16d5cf9afd
2 changed files with 12 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ public class RedisTemplateWxRedisOps implements WxRedisOps {
@Override
public Long getExpire(String key) {
return redisTemplate.getExpire(key);
return redisTemplate.getExpire(key, TimeUnit.SECONDS);
}
@Override