summaryrefslogtreecommitdiff
path: root/redis/commands/core.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2022-12-12 10:18:10 +0200
committerGitHub <noreply@github.com>2022-12-12 10:18:10 +0200
commit3a121bef7bbc5bb5f07b119b0eef2f7527a38eda (patch)
tree62c8ec95486ffe31d6c084a3b0b22fc4987bf757 /redis/commands/core.py
parent6219574b042a6596b150ca8248441198f01f8c87 (diff)
downloadredis-py-3a121bef7bbc5bb5f07b119b0eef2f7527a38eda.tar.gz
Intentional NotImplementedError for LATENCY commands that should not be in client (#2501)
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r--redis/commands/core.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py
index 1625e10..2ebd35f 100644
--- a/redis/commands/core.py
+++ b/redis/commands/core.py
@@ -980,6 +980,34 @@ class ManagementCommands(CommandsProtocol):
"""
return self.execute_command("LASTSAVE", **kwargs)
+ def latency_doctor(self):
+ """Raise a NotImplementedError, as the client will not support LATENCY DOCTOR.
+ This funcion is best used within the redis-cli.
+
+ For more information see https://redis.io/commands/latency-doctor
+ """
+ raise NotImplementedError(
+ """
+ LATENCY DOCTOR is intentionally not implemented in the client.
+
+ For more information see https://redis.io/commands/latency-doctor
+ """
+ )
+
+ def latency_graph(self):
+ """Raise a NotImplementedError, as the client will not support LATENCY GRAPH.
+ This funcion is best used within the redis-cli.
+
+ For more information see https://redis.io/commands/latency-graph.
+ """
+ raise NotImplementedError(
+ """
+ LATENCY GRAPH is intentionally not implemented in the client.
+
+ For more information see https://redis.io/commands/latency-graph
+ """
+ )
+
def lolwut(self, *version_numbers: Union[str, float], **kwargs) -> ResponseT:
"""
Get the Redis version and a piece of generative computer art