feat(房间): 首页房间缓存10分钟

This commit is contained in:
tianfeng 2025-09-16 18:34:26 +08:00
parent 743694f106
commit abce8cbf3c
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ public class RoomVoiceDiscoverQryExe {
room.setUserSVipLevel(svipLevelEnumMap.get(room.getUserId()));
})
.toList();
// regionRoomCacheService.saveRegionsRoom(JSON.toJSONString(roomList), key);
regionRoomCacheService.saveRegionsRoom(JSON.toJSONString(roomList), key);
return roomList;
}

View File

@ -27,7 +27,7 @@ public class RegionRoomCacheServiceImpl implements RegionRoomCacheService {
private final RedisService redisService;
private static final long CACHE_DAYS = 3;
private static final long CACHE_TIME = 2;
private static final long CACHE_TIME = 10;
@Override
public void remove(String key) {