From 09a52dba48221353eafa8188d73ab97e8f4ccc49 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Mon, 2 May 2022 12:03:56 +0300 Subject: Implemented LATENCY HISTOGRAM by always throwing NotImplementedError (#2147) Co-authored-by: Chayim --- redis/commands/core.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'redis/commands/core.py') 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 -- cgit v1.2.1