diff options
author | Christian Bodt <christian.bodt@coinplus.com> | 2015-10-20 13:33:31 +0200 |
---|---|---|
committer | Christian Bodt <christian.bodt@coinplus.com> | 2015-10-20 13:50:09 +0200 |
commit | 18893f74950ba957f7ca746296121e2948713374 (patch) | |
tree | cb870536f365a5d1bbddc981281778dae4eff5c7 /redis/client.py | |
parent | c1a53443c1a05295efbf1fcac875bd6bf132e7aa (diff) | |
download | redis-py-18893f74950ba957f7ca746296121e2948713374.tar.gz |
-Add CHANGES message.
-Rename variables for coherence
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/redis/client.py b/redis/client.py index 6e4c9ab..3ac242b 100755 --- a/redis/client.py +++ b/redis/client.py @@ -1661,10 +1661,10 @@ class StrictRedis(object): pieces.extend([Token('LIMIT'), start, num]) return self.execute_command(*pieces) - def zrevrangebylex(self, name, upper, lower, start=None, num=None): + def zrevrangebylex(self, name, max, min, start=None, num=None): """ Return the reversed lexicographical range of values from sorted set - ``name`` between ``upper`` and ``lower``. + ``name`` between ``max`` and ``min``. If ``start`` and ``num`` are specified, then return a slice of the range. @@ -1672,7 +1672,7 @@ class StrictRedis(object): if (start is not None and num is None) or \ (num is not None and start is None): raise RedisError("``start`` and ``num`` must both be specified") - pieces = ['ZREVRANGEBYLEX', name, upper, lower] + pieces = ['ZREVRANGEBYLEX', name, max, min] if start is not None and num is not None: pieces.extend([Token('LIMIT'), start, num]) return self.execute_command(*pieces) |