summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index b8dec5b..bc52cd9 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -2019,7 +2019,7 @@ class StrictRedis(object):
def pubsub_channels(self):
"""
- Return a list of channels
+ Return a list of channels that have at least one subscriber
"""
return self.execute_command('PUBSUB CHANNELS')
@@ -2031,7 +2031,7 @@ class StrictRedis(object):
def pubsub_numsub(self, *args):
"""
- Return a list of the number of subscribers for each channel given in ``*args``
+ Return a list of (channel, number of subscribers) tuples for each channel given in ``*args``
"""
return self.execute_command('PUBSUB NUMSUB', *args)