减少聊天信息缓存
parent
1dafc96c7c
commit
74463746c4
|
|
@ -267,7 +267,7 @@ public class ChatLogic {
|
|||
String chatInfo = gson.toJson(chatRedisEntity);
|
||||
|
||||
long l = redisUtil.lGetListSize(key);
|
||||
if(l>1000){
|
||||
if(l>300){
|
||||
redisUtil.lPop(key);
|
||||
}
|
||||
redisUtil.lSet(key,chatInfo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue