summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-11-05 15:05:43 -0800
committerAndy McCurdy <andy@andymccurdy.com>2018-11-05 15:05:43 -0800
commit320afd36c0fd844a63cbff1a3ed3f38085493783 (patch)
treed8b27bc24db3a4c19eeccbcc075eef4e7ae46443
parent5f61ad9135b649225d4a944211e96e297d56f585 (diff)
downloadredis-py-320afd36c0fd844a63cbff1a3ed3f38085493783.tar.gz
wrap xgroup_create's MKSTREAM option in a Token.get_token()
-rwxr-xr-xredis/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index 13aa689..737ae60 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -1879,7 +1879,7 @@ class StrictRedis(object):
"""
pieces = ['XGROUP CREATE', name, groupname, id]
if mkstream:
- pieces.append('MKSTREAM')
+ pieces.append(Token.get_token('MKSTREAM'))
return self.execute_command(*pieces)
def xgroup_delconsumer(self, name, groupname, consumername):