summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorChristian Bodt <christian.bodt@coinplus.com>2015-10-20 13:33:31 +0200
committerChristian Bodt <christian.bodt@coinplus.com>2015-10-20 13:50:09 +0200
commit18893f74950ba957f7ca746296121e2948713374 (patch)
treecb870536f365a5d1bbddc981281778dae4eff5c7 /redis/client.py
parentc1a53443c1a05295efbf1fcac875bd6bf132e7aa (diff)
downloadredis-py-18893f74950ba957f7ca746296121e2948713374.tar.gz
-Add CHANGES message.
-Rename variables for coherence
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py6
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)