File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -980,6 +980,34 @@ def lastsave(self, **kwargs) -> ResponseT:
980
980
"""
981
981
return self .execute_command ("LASTSAVE" , ** kwargs )
982
982
983
+ def latency_doctor (self ):
984
+ """Raise a NotImplementedError, as the client will not support LATENCY DOCTOR.
985
+ This funcion is best used within the redis-cli.
986
+
987
+ For more information see https://redis.io/commands/latency-doctor
988
+ """
989
+ raise NotImplementedError (
990
+ """
991
+ LATENCY DOCTOR is intentionally not implemented in the client.
992
+
993
+ For more information see https://redis.io/commands/latency-doctor
994
+ """
995
+ )
996
+
997
+ def latency_graph (self ):
998
+ """Raise a NotImplementedError, as the client will not support LATENCY GRAPH.
999
+ This funcion is best used within the redis-cli.
1000
+
1001
+ For more information see https://redis.io/commands/latency-graph.
1002
+ """
1003
+ raise NotImplementedError (
1004
+ """
1005
+ LATENCY GRAPH is intentionally not implemented in the client.
1006
+
1007
+ For more information see https://redis.io/commands/latency-graph
1008
+ """
1009
+ )
1010
+
983
1011
def lolwut (self , * version_numbers : Union [str , float ], ** kwargs ) -> ResponseT :
984
1012
"""
985
1013
Get the Redis version and a piece of generative computer art
Original file line number Diff line number Diff line change @@ -4527,6 +4527,16 @@ def test_latency_histogram_not_implemented(self, r: redis.Redis):
4527
4527
with pytest .raises (NotImplementedError ):
4528
4528
r .latency_histogram ()
4529
4529
4530
+ @skip_if_server_version_lt ("7.0.0" )
4531
+ def test_latency_graph_not_implemented (self , r : redis .Redis ):
4532
+ with pytest .raises (NotImplementedError ):
4533
+ r .latency_graph ()
4534
+
4535
+ @skip_if_server_version_lt ("7.0.0" )
4536
+ def test_latency_doctor_not_implemented (self , r : redis .Redis ):
4537
+ with pytest .raises (NotImplementedError ):
4538
+ r .latency_doctor ()
4539
+
4530
4540
@pytest .mark .onlynoncluster
4531
4541
@skip_if_server_version_lt ("4.0.0" )
4532
4542
@skip_if_redis_enterprise ()
You can’t perform that action at this time.
0 commit comments