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 f11e2e5..b5fda9c 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -2017,11 +2017,11 @@ class StrictRedis(object):
"""
return self.execute_command('PUBLISH', channel, message)
- def pubsub_channels(self):
+ def pubsub_channels(self, pattern='*'):
"""
Return a list of channels that have at least one subscriber
"""
- return self.execute_command('PUBSUB CHANNELS')
+ return self.execute_command('PUBSUB CHANNELS', pattern)
def pubsub_numpat(self):
"""