redis
1. 保存直播间:
redisWriteClient.zaddString(ZhiboRedisKey.ROOM_ALL_LIST_KEY, sid, String.valueOf(baseRoom.getId()));
2. 获取sid从大到小的15个直播间:
Set<String> roomList = redisReadClient.zrevrangeByScoreString(ZhiboRedisKey.ROOM_ALL_LIST_KEY, sid, 0, 0, 15);
3. 获取sid之后的15个直播间:
Set<String> roomList = redisReadClient.zrangeByScoreString(ZhiboRedisKey.ROOM_ALL_LIST_KEY, sid, Double.MAX_VALUE, 0, 15);
相关推荐
oraclemch 2019-12-16
pfpfpfpfpf 2015-03-07
MySQLLelove 2019-06-27
xpaibeyond 2010-05-14
gongg0 2012-07-06
holyrong 2014-03-02
Cavlier 2012-10-04
LinuxOracleWf 2012-05-27
anshenoracle 2011-04-20
嵌入式天地 2011-01-28
LinuxOracleWf 2010-01-15
ltoper 2019-04-07
一昕之代码 2019-04-06
ltoper 2019-04-06
ltoper 2019-04-05
不怕猫的耗子A 2007-04-07