summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
authorAvital Fine <79420960+AvitalFineRedis@users.noreply.github.com>2021-10-14 16:03:03 +0200
committerGitHub <noreply@github.com>2021-10-14 16:03:03 +0200
commiteeac2529e91d691cc0d22206b81cef15909b73ed (patch)
treedd13cc95ddc32586e69c2644947462cb713b21de /redis
parent0a55859a5ec3d5ab70ff1b0ea27bc13d91621ab9 (diff)
parent3758579b42c4cc7546343dcf348891e933cb922f (diff)
downloadredis-py-eeac2529e91d691cc0d22206b81cef15909b73ed.tar.gz
Merge pull request #1613 from AvitalFineRedis/MEMORY-MALLOC-STATS
Support MEMORY MALLOC-STATS
Diffstat (limited to 'redis')
-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