登陆:玩家在线情况redis改为hash格式

This commit is contained in:
luying
2021-03-04 14:55:08 +08:00
parent 578b890630
commit d4561c2e3d
12 changed files with 131 additions and 67 deletions
+2
View File
@@ -24,6 +24,8 @@ declare module 'redis' {
hgetAsync(key: string, field: string): Promise<string>;
// 获取存储在哈希表中指定字段的值。
hexistsAsync(key: string, field: string): Promise<number>;
// 获取哈希表中所有字段和值
hgetallAsync(key: string): Promise<any>;
// 移除并返回集合中的一个随机元素
spopAsync(key: string, count?: number): Promise<number>;