diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-09-01 11:44:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 11:44:36 +0300 |
commit | 18c1cc7482d2177809d381e91721f119117849ff (patch) | |
tree | 5584e9dea19118bc927b35e174680e504fcfcfca /redis/commands.py | |
parent | de9922ad0fc955668d99748f3ad3be0ccff1f9da (diff) | |
download | redis-py-18c1cc7482d2177809d381e91721f119117849ff.tar.gz |
Support for command count (#1554)
Part of #1546
Diffstat (limited to 'redis/commands.py')
-rw-r--r-- | redis/commands.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/redis/commands.py b/redis/commands.py index 2d39f5d..7066bd8 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -2924,6 +2924,9 @@ class Commands: """ return self.execute_command('MODULE LIST') + def command_count(self): + return self.execute_command('COMMAND COUNT') + class Script: "An executable Lua script object returned by ``register_script``" |