diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-10-18 12:30:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 12:30:13 +0300 |
commit | 039488d97ec545b37e903d1b791a88bac8f77973 (patch) | |
tree | fc43a25d2c2fc21944b31b9f131e426c263d1a54 /redis | |
parent | 7f96435480e74460989ad4dd4a686aff47e6b703 (diff) | |
download | redis-py-039488d97ec545b37e903d1b791a88bac8f77973.tar.gz |
Raising NotImplementedError for SCRIPT DEBUG and DEBUG SEGFAULT (#1624)
Diffstat (limited to 'redis')
-rw-r--r-- | redis/commands.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/redis/commands.py b/redis/commands.py index cd3b802..62c082d 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -485,6 +485,11 @@ class Commands: """Returns version specific meta information about a given key""" return self.execute_command('DEBUG OBJECT', key) + def debug_segfault(self): + raise NotImplementedError( + "DEBUG SEGFAULT is intentionally not implemented in the client." + ) + def echo(self, value): """Echo the string back from the server""" return self.execute_command('ECHO', value) @@ -2894,6 +2899,11 @@ class Commands: """ return self.execute_command('SCRIPT EXISTS', *args) + def script_debug(self, *args): + raise NotImplementedError( + "SCRIPT DEBUG is intentionally not implemented in the client." + ) + def script_flush(self, sync_type="SYNC"): """Flush all scripts from the script cache. ``sync_type`` is by default SYNC (synchronous) but it can also be |