Skip to content

Commit c02ecb5

Browse files
raise NotImplementedError
1 parent 5cd878d commit c02ecb5

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

redis/commands.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,16 @@ def migrate(self, host, port, keys, destination_db, timeout,
568568
timeout, *pieces)
569569

570570
def object(self, infotype, key):
571-
"Return the encoding, idletime, or refcount about the key"
571+
"""Return the encoding, idletime, or refcount about the key"""
572572
return self.execute_command('OBJECT', infotype, key, infotype=infotype)
573573

574+
def memory_doctor(self):
575+
raise NotImplementedError(
576+
"MEMORY DOCTOR is not supported in the client."
577+
)
578+
574579
def memory_stats(self):
575-
"Return a dictionary of memory stats"
580+
"""Return a dictionary of memory stats"""
576581
return self.execute_command('MEMORY STATS')
577582

578583
def memory_usage(self, key, samples=None):
@@ -590,15 +595,16 @@ def memory_usage(self, key, samples=None):
590595
return self.execute_command('MEMORY USAGE', key, *args)
591596

592597
def memory_purge(self):
593-
"Attempts to purge dirty pages for reclamation by allocator"
598+
"""Attempts to purge dirty pages for reclamation by allocator"""
594599
return self.execute_command('MEMORY PURGE')
595600

596601
def ping(self):
597-
"Ping the Redis server"
602+
"""Ping the Redis server"""
598603
return self.execute_command('PING')
599604

600605
def quit(self):
601-
"""Ask the server to close the connection.
606+
"""
607+
Ask the server to close the connection.
602608
https://redis.io/commands/quit
603609
"""
604610
return self.execute_command('QUIT')

0 commit comments

Comments
 (0)