【发布时间】:2026-02-11 07:00:01
【问题描述】:
我有一个名为 save 的通用方法,带有 Redis 模板:
redisTemplate.expire(cacheType.name(), redisPropertyConfiguration.getTimeToLive(), TimeUnit.MINUTES);
每次调用Redis模板的expire这个方法都会覆盖过期时间,我想防止过期时间,如果过期时间结束就放
【问题讨论】:
标签: spring spring-boot redis spring-data