summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index 5b2e1b4..fe38909 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -153,7 +153,6 @@ class Redis(object):
Connection and Pipeline derive from this, implementing how
the commands are sent and received to the Redis server
"""
-
RESPONSE_CALLBACKS = dict_merge(
string_keys_to_dict(
'AUTH DEL EXISTS EXPIRE MOVE MSETNX RENAMENX SADD SISMEMBER SMOVE '
@@ -165,9 +164,14 @@ class Redis(object):
'ZCARD ZREMRANGEBYSCORE',
int
),
+ string_keys_to_dict(
+ # these return OK, or int if redis-server is >=1.3.4
+ 'LPUSH RPUSH',
+ lambda r: isinstance(r, int) and r or r == 'OK'
+ ),
string_keys_to_dict('ZSCORE ZINCRBY', float),
string_keys_to_dict(
- 'FLUSHALL FLUSHDB LPUSH LSET LTRIM MSET RENAME RPUSH '
+ 'FLUSHALL FLUSHDB LSET LTRIM MSET RENAME '
'SAVE SELECT SET SHUTDOWN',
lambda r: r == 'OK'
),