mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-07 07:28:03 +08:00
小程序查询枪口列表存缓存之前先删除旧缓存
This commit is contained in:
@@ -416,6 +416,7 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
|||||||
// 查数据库
|
// 查数据库
|
||||||
list = pileConnectorInfoMapper.getUniAppConnectorList(stationId);
|
list = pileConnectorInfoMapper.getUniAppConnectorList(stationId);
|
||||||
if (CollectionUtils.isNotEmpty(list)) {
|
if (CollectionUtils.isNotEmpty(list)) {
|
||||||
|
redisCache.deleteObject(redisKey);
|
||||||
redisCache.setCacheList(redisKey, list);
|
redisCache.setCacheList(redisKey, list);
|
||||||
redisCache.expire(redisKey, CacheConstants.cache_expire_time_1d);
|
redisCache.expire(redisKey, CacheConstants.cache_expire_time_1d);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user