[redis] fix BRPOPLPUSH reply can be null

This commit is contained in:
Oleg Repin
2017-12-08 19:16:20 +03:00
parent d05696aa6e
commit ad4ac7e068
+2 -2
View File
@@ -250,8 +250,8 @@ export interface Commands<R> {
/**
* Pop a value from a list, push it to another list and return it; or block until one is available.
*/
brpoplpush(source: string, destination: string, timeout: number, cb?: Callback<string>): R;
BRPOPLPUSH(source: string, destination: string, timeout: number, cb?: Callback<string>): R;
brpoplpush(source: string, destination: string, timeout: number, cb?: Callback<string|null>): R;
BRPOPLPUSH(source: string, destination: string, timeout: number, cb?: Callback<string|null>): R;
/**
* ADDSLOTS - Assign new hash slots to receiving node.