summaryrefslogtreecommitdiff
path: root/redis/commands
diff options
context:
space:
mode:
authorChayim I. Kirshen <c@kirshen.com>2021-11-21 13:17:31 +0200
committerChayim I. Kirshen <c@kirshen.com>2021-11-21 13:17:31 +0200
commit1448a65e656a270caf4c6d3ba4eee5de04d0c4e1 (patch)
tree3b94bf968ef0d0d8b9820f8e8c390cab752df07a /redis/commands
parentd2b233384458869270352b8c99ca682ae480da5f (diff)
downloadredis-py-ck-binary-responses.tar.gz
Adding support for non-decodable commandsck-binary-responses
Some commands (i.e DUMP) should never have their response decoded, as they return binaries, not encoded blobs fixes #1254
Diffstat (limited to 'redis/commands')
-rw-r--r--redis/commands/core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py
index 516e7d9..09fcc5d 100644
--- a/redis/commands/core.py
+++ b/redis/commands/core.py
@@ -801,7 +801,10 @@ class CoreCommands:
Return a serialized version of the value stored at the specified key.
If key does not exist a nil bulk reply is returned.
"""
- return self.execute_command('DUMP', name)
+ from redis.client import NEVER_DECODE
+ options = {}
+ options[NEVER_DECODE] = []
+ return self.execute_command('DUMP', name, **options)
def exists(self, *names):
"Returns the number of ``names`` that exist"