forked from github/dataease
fix: CacheUtils 设置缓存
This commit is contained in:
parent
c613c9278b
commit
c15dbf5f14
@ -38,7 +38,7 @@ public class CacheUtils {
|
||||
if (getCacheManager() instanceof RedisCacheManager) {
|
||||
RedisTemplate redisTemplate = (RedisTemplate) CommonBeanFactory.getBean("redisTemplate");
|
||||
ValueOperations valueOperations = redisTemplate.opsForValue();
|
||||
valueOperations.setIfPresent(cacheName + "::" + key , value );
|
||||
valueOperations.set(cacheName + "::" + key , value );
|
||||
return;
|
||||
}
|
||||
Element e = new Element(key, value);
|
||||
|
Loading…
Reference in New Issue
Block a user