mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
perf: 集群环境redis缓存优化
This commit is contained in:
2
de-xpack
2
de-xpack
Submodule de-xpack updated: 7594ff939a...22928ead8f
@@ -70,10 +70,11 @@ public class RedisCacheImpl implements DECacheService {
|
||||
|
||||
@Override
|
||||
public void keyRemove(String cacheName, String key) {
|
||||
// redisTemplate.delete(cacheName + SEPARATOR + key);
|
||||
Cache cache = getCacheManager().getCache(cacheName);
|
||||
if (null == cache) return;
|
||||
cache.evictIfPresent(key);
|
||||
cache.clear();
|
||||
redisTemplate.delete(cacheName + SEPARATOR + key);
|
||||
}
|
||||
|
||||
@PostConstruct
|
||||
|
||||
Reference in New Issue
Block a user