增加缓存方法

master
one 2023-11-30 19:57:48 +08:00
parent bafb51e12b
commit 9f6343aae0
1 changed files with 11 additions and 0 deletions

View File

@ -102,6 +102,17 @@ public class RedisService {
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;
}
/**
*
*