PSUBSCRIBE pattern [pattern ...]
Available since: 2.0.0
Time complexity: O(N) where N is the number of patterns the client is already subscribed to.
ACL categories:
@pubsub
@slow
Subscribes the client to the given patterns.
Supported glob-style patterns:
h?llo
subscribes tohello
,hallo
andhxllo
h*llo
subscribes tohllo
andheeeello
h[ae]llo
subscribes tohello
andhallo,
but nothillo
Use \
to escape special characters if you want to match them verbatim.