diff options
author | AvitalFineRedis <avital.fine@redislabs.com> | 2021-10-13 15:57:21 +0200 |
---|---|---|
committer | AvitalFineRedis <avital.fine@redislabs.com> | 2021-10-13 15:57:21 +0200 |
commit | c02ecb5c4f3d57da490a24e150cd386ad69580bd (patch) | |
tree | 2066c05ada3c8fed9fba3f8b027f207f055ca587 | |
parent | 5cd878de3eca3322d6719822d4999595f943b218 (diff) | |
download | redis-py-c02ecb5c4f3d57da490a24e150cd386ad69580bd.tar.gz |
raise NotImplementedError
-rw-r--r-- | redis/commands.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/redis/commands.py b/redis/commands.py index eb7cea5..b1e43a9 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -568,11 +568,16 @@ class Commands: timeout, *pieces) def object(self, infotype, key): - "Return the encoding, idletime, or refcount about the key" + """Return the encoding, idletime, or refcount about the key""" return self.execute_command('OBJECT', infotype, key, infotype=infotype) + def memory_doctor(self): + raise NotImplementedError( + "MEMORY DOCTOR is not supported in the client." + ) + def memory_stats(self): - "Return a dictionary of memory stats" + """Return a dictionary of memory stats""" return self.execute_command('MEMORY STATS') def memory_usage(self, key, samples=None): @@ -590,15 +595,16 @@ class Commands: return self.execute_command('MEMORY USAGE', key, *args) def memory_purge(self): - "Attempts to purge dirty pages for reclamation by allocator" + """Attempts to purge dirty pages for reclamation by allocator""" return self.execute_command('MEMORY PURGE') def ping(self): - "Ping the Redis server" + """Ping the Redis server""" return self.execute_command('PING') def quit(self): - """Ask the server to close the connection. + """ + Ask the server to close the connection. https://redis.io/commands/quit """ return self.execute_command('QUIT') |