forked from github/dataease
Merge pull request #13038 from dataease/pr@dev-v2@perf_redis_cache
perf: 集群环境redis缓存优化
This commit is contained in:
commit
8c7501bada
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
|||||||
Subproject commit 7594ff939a2deab94724f4dcbe0a4d92674985e4
|
Subproject commit 22928ead8f23a94c5dc96fdf35ce4ac2f49fe856
|
@ -70,10 +70,11 @@ public class RedisCacheImpl implements DECacheService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void keyRemove(String cacheName, String key) {
|
public void keyRemove(String cacheName, String key) {
|
||||||
// redisTemplate.delete(cacheName + SEPARATOR + key);
|
|
||||||
Cache cache = getCacheManager().getCache(cacheName);
|
Cache cache = getCacheManager().getCache(cacheName);
|
||||||
if (null == cache) return;
|
if (null == cache) return;
|
||||||
cache.evictIfPresent(key);
|
cache.evictIfPresent(key);
|
||||||
|
cache.clear();
|
||||||
|
redisTemplate.delete(cacheName + SEPARATOR + key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
|
Loading…
Reference in New Issue
Block a user