diff options
author | Chayim I. Kirshen <c@kirshen.com> | 2021-11-09 10:57:20 +0200 |
---|---|---|
committer | Chayim I. Kirshen <c@kirshen.com> | 2021-11-09 10:57:20 +0200 |
commit | 0e73a4e510b62026164f85e35997e0d1e913e3a4 (patch) | |
tree | c41aa89b1a6d2aa3aaf7684b36b4a932c93881bd /redis/commands/json/commands.py | |
parent | bba75187931af84dd21c91bcf1b3bd422c9aed72 (diff) | |
download | redis-py-ck-jsonts-pipelines.tar.gz |
Migrating pipeline support for JSON and TSck-jsonts-pipelines
Diffstat (limited to 'redis/commands/json/commands.py')
-rw-r--r-- | redis/commands/json/commands.py | 18 |
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) |