登陆:玩家在线情况redis改为hash格式
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user