Compare commits

...

1 Commits

Author SHA1 Message Date
Bennett Buchanan 0af0b7696b bugfix: ZENKO-1165 Allow option to list withscores 2018-09-20 12:42:48 -07:00
1 changed files with 6 additions and 4 deletions

View File

@ -183,11 +183,12 @@ class RedisClient {
* @param {string} key - name of key
* @param {integer} start - start index (inclusive)
* @param {integer} end - end index (inclusive) (can use -1)
* @param {string} withscores - option to list with scores
* @param {function} cb - callback
* @return {undefined}
*/
zrange(key, start, end, cb) {
return this._client.zrange(key, start, end, cb);
zrange(key, start, end, withscores, cb) {
return this._client.zrange(key, start, end, withscores, cb);
}
/**
@ -197,11 +198,12 @@ class RedisClient {
* (can use "-inf")
* @param {integer|string} max - max score value (inclusive)
* (can use "+inf")
* @param {string} withscores - option to list with scores
* @param {function} cb - callback
* @return {undefined}
*/
zrangebyscore(key, min, max, cb) {
return this._client.zrangebyscore(key, min, max, cb);
zrangebyscore(key, min, max, withscores, cb) {
return this._client.zrangebyscore(key, min, max, withscores, cb);
}
/**