mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
设置实时数据redis过期时间
This commit is contained in:
@@ -651,9 +651,9 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
|
||||
|
||||
// 设置过期时间
|
||||
try {
|
||||
if (redisCache.getExpire(redisKey) < 0) {
|
||||
redisCache.expire(redisKey, CacheConstants.cache_expire_time_10d);
|
||||
}
|
||||
redisCache.expire(redisKey, CacheConstants.cache_expire_time_30d);
|
||||
// if (redisCache.getExpire(redisKey) < 0) {
|
||||
// }
|
||||
} catch (Exception e) {
|
||||
log.info("设置过期时间error", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user