减少聊天信息缓存

back_recharge
jiahuiwen 2022-03-01 13:16:09 +08:00
parent 1dafc96c7c
commit 74463746c4
1 changed files with 1 additions and 1 deletions

View File

@ -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);