Skip to content

Commit 983c261

Browse files
committed
delete dping implementation
1 parent 19dba3f commit 983c261

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

redis/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,6 @@ class AbstractRedis:
735735
"CONFIG RESETSTAT": bool_ok,
736736
"CONFIG SET": bool_ok,
737737
"DEBUG OBJECT": parse_debug_object,
738-
"DPING": bool_ok,
739738
"FUNCTION DELETE": bool_ok,
740739
"FUNCTION FLUSH": bool_ok,
741740
"FUNCTION LOAD": bool_ok,

redis/commands/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,9 +1052,6 @@ def ping(self, **kwargs) -> ResponseT:
10521052
"""
10531053
return self.execute_command("PING", **kwargs)
10541054

1055-
def dping(self) -> bool:
1056-
return self.execute_command("DPING")
1057-
10581055
def quit(self, **kwargs) -> ResponseT:
10591056
"""
10601057
Ask the server to close the connection.

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _get_info(redis_url):
121121
client = redis.Redis.from_url(redis_url)
122122
info = client.info()
123123
try:
124-
client.dping()
124+
client.execute_command("DPING")
125125
info["enterprise"] = True
126126
except redis.ResponseError:
127127
info["enterprise"] = False

0 commit comments

Comments
 (0)