summaryrefslogtreecommitdiff
path: root/redis/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands.py')
-rw-r--r--redis/commands.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/redis/commands.py b/redis/commands.py
index 94489d1..dbc188c 100644
--- a/redis/commands.py
+++ b/redis/commands.py
@@ -594,6 +594,10 @@ class Commands:
"""Return a dictionary of memory stats"""
return self.execute_command('MEMORY STATS')
+ def memory_malloc_stats(self):
+ """Return an internal statistics report from the memory allocator."""
+ return self.execute_command('MEMORY MALLOC-STATS')
+
def memory_usage(self, key, samples=None):
"""
Return the total memory usage for key, its value and associated