summaryrefslogtreecommitdiff
path: root/redis/commands/json/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/json/commands.py')
-rw-r--r--redis/commands/json/commands.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/redis/commands/json/commands.py b/redis/commands/json/commands.py
index 716741c..4436f6a 100644
--- a/redis/commands/json/commands.py
+++ b/redis/commands/json/commands.py
@@ -154,6 +154,9 @@ class JSONCommands:
``xx`` if set to True, set ``value`` only if it exists.
``decode_keys`` If set to True, the keys of ``obj`` will be decoded
with utf-8.
+
+ For the purpose of using this within a pipeline, this command is also
+ aliased to jsonset.
"""
if decode_keys:
obj = decode_dict_keys(obj)
@@ -212,3 +215,18 @@ class JSONCommands:
pieces.append(key)
pieces.append(str(path))
return self.execute_command("JSON.DEBUG", *pieces)
+
+ @deprecated(version='4.0.0',
+ reason='redisjson-py supported this, call get directly.')
+ def jsonget(self, *args, **kwargs):
+ return self.get(*args, **kwargs)
+
+ @deprecated(version='4.0.0',
+ reason='redisjson-py supported this, call get directly.')
+ def jsonmget(self, *args, **kwargs):
+ return self.mget(*args, **kwargs)
+
+ @deprecated(version='4.0.0',
+ reason='redisjson-py supported this, call get directly.')
+ def jsonset(self, *args, **kwargs):
+ return self.set(*args, **kwargs)