派生自 projectDept/qhighschool

Administrator
2022-11-29 8c99e2d8b6c1e0d9cde6abbe80b4df75be19f6d1
src/main/java/com/qxueyou/scc/base/service/impl/RedisCacheBean.java
@@ -19,9 +19,11 @@
import com.qxueyou.scc.base.service.ICacheService;
import com.qxueyou.scc.base.util.CollectionUtils;
import javax.annotation.Resource;
/**
 * 阿里云OCS缓存服务
 *
 *
 * @author 德虎
 *
 */
@@ -32,7 +34,7 @@
   private static final Logger log = LogManager.getLogger("RedisCacheService");
   @SuppressWarnings("rawtypes")
   @Autowired
   @Resource
   private RedisTemplate redisTemplate;
   @SuppressWarnings("unchecked")
@@ -78,7 +80,7 @@
      ValueOperations<String, Object> ops = redisTemplate.opsForValue();
      ops.set(key, obj);
   }
   @SuppressWarnings("unchecked")
   @Override
   public boolean setIfAbsent(String key, Object obj) {
@@ -129,8 +131,8 @@
   public void lstRightPush(String key, Object value) {
      redisTemplate.opsForList().rightPush(key, value);
   }
   @SuppressWarnings("unchecked")
   @Override
   public void expire(String key,long timeout,TimeUnit unit) {