提交 c15dbf5f authored 作者: taojinlong's avatar taojinlong

fix: CacheUtils 设置缓存

上级 c613c927
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论