Merge pull request #30648 from 9renpoto/master

[redis] Fixed redisClient.zincrby callback
This commit is contained in:
Benjamin Lichtman
2018-11-20 06:16:01 -08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -1025,8 +1025,8 @@ export interface Commands<R> {
/**
* Increment the score of a member in a sorted set.
*/
zincrby(key: string, increment: number, member: string, cb?: Callback<number>): R;
ZINCRBY(key: string, increment: number, member: string, cb?: Callback<number>): R;
zincrby(key: string, increment: number, member: string, cb?: Callback<string>): R;
ZINCRBY(key: string, increment: number, member: string, cb?: Callback<string>): R;
/**
* Intersect multiple sorted sets and store the resulting sorted set in a new key.
+2
View File
@@ -131,3 +131,5 @@ client.incrbyfloat('a', 1.5, (error, value) => value.startsWith('1'));
client.INCRBYFLOAT('a', 1.5, (error, value) => value.startsWith('1'));
client.hincrbyfloat('a', 'b', 1.5, (error, value) => value.startsWith('1'));
client.HINCRBYFLOAT('a', 'b', 1.5, (error, value) => value.startsWith('1'));
client.zincrby('a', 1, 'b', strCallback);
client.ZINCRBY('a', 1, 'b', strCallback);