增加缓存方法
parent
bafb51e12b
commit
9f6343aae0
|
@ -102,6 +102,17 @@ public class RedisService {
|
||||||
return operation.get(key);
|
return operation.get(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 增加已存在list数据
|
||||||
|
* @param key
|
||||||
|
* @param obj
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Long addListData(final String key,final String obj){
|
||||||
|
Long l = redisTemplate.opsForList().rightPush(key, obj);
|
||||||
|
return l;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除单个对象
|
* 删除单个对象
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue