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