pvp刷新规则,区段没有人时刷前后一名

This commit is contained in:
luying
2021-01-08 20:02:23 +08:00
parent c743e2bd40
commit c3b4a59906
6 changed files with 227 additions and 127 deletions
+2
View File
@@ -41,6 +41,8 @@ declare module 'redis' {
zrankAsync(key: string, field: string): Promise<number>;
// 返回有序集中指定成员的排名,从大到小
zrevrankAsync(key: string, field: string): Promise<number>;
// 命令返回有序集中,指定区间内的成员,从大到小
zrevrangeAsync(key: string, start: number, end: number): Promise<any>;
}
export interface Multi extends Commands<Multi> {
execAsync(...args: any[]): Promise<any>;