summaryrefslogtreecommitdiff
path: root/redis/commands/core.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-05-02 12:03:56 +0300
committerGitHub <noreply@github.com>2022-05-02 12:03:56 +0300
commit09a52dba48221353eafa8188d73ab97e8f4ccc49 (patch)
tree135665f2a588b722fddcc2d652a89658b4fe1cfd /redis/commands/core.py
parenteea88da8b78e1c0e3c8403f8ae756a7716a4abc1 (diff)
downloadredis-py-09a52dba48221353eafa8188d73ab97e8f4ccc49.tar.gz
Implemented LATENCY HISTOGRAM by always throwing NotImplementedError (#2147)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r--redis/commands/core.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py
index b52ddfe..ac1b6c7 100644
--- a/redis/commands/core.py
+++ b/redis/commands/core.py
@@ -1064,6 +1064,15 @@ class ManagementCommands(CommandsProtocol):
"""
return self.execute_command("MEMORY PURGE", **kwargs)
+ def latency_histogram(self, *args):
+ """
+ This function throws a NotImplementedError since it is intentionally
+ not supported.
+ """
+ raise NotImplementedError(
+ "LATENCY HISTOGRAM is intentionally not implemented in the client."
+ )
+
def ping(self, **kwargs) -> ResponseT:
"""
Ping the Redis server