redis的zset总数
时间: 2023-08-27 13:05:41 浏览: 99
根据引用\[2\]中的代码,可以通过Redis的size(key)方法来获取ZSet的总数。在这个例子中,size(SocketCommon.EXAM_WAIT_LIST + schoolId)返回了ZSet的大小。所以,你可以使用这个方法来获取ZSet的总数。
#### 引用[.reference_title]
- *1* *3* [Redis Zset有序集合](https://blog.csdn.net/jj89929665/article/details/113348139)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [【叫号系统】Redis ZSet结构](https://blog.csdn.net/weixin_46670730/article/details/129981573)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文