VOOZH about

URL: https://redis.io/docs/latest/commands/punsubscribe/

⇱ PUNSUBSCRIBE | Docs


{"acl_categories":["@pubsub","@slow"],"arguments":[{"display_text":"pattern","multiple":true,"name":"pattern","optional":true,"type":"pattern"}],"arity":-1,"categories":["docs","develop","stack","oss","rs","rc","oss","kubernetes","clients"],"command_flags":["pubsub","noscript","loading","stale"],"complexity":"O(N) where N is the number of patterns to unsubscribe.","description":"Stops listening to messages published to channels that match one or more patterns.","duplicateOf":"head:data-ai-metadata","group":"pubsub","location":"body","since":"2.0.0","syntax_fmt":"PUNSUBSCRIBE [pattern [pattern ...]]","title":"PUNSUBSCRIBE","tableOfContents":{"sections":[{"id":"optional-arguments","title":"Optional arguments"},{"id":"redis-software-and-redis-cloud-compatibility","title":"Redis Software and Redis Cloud compatibility"},{"id":"return-information","title":"Return information"}]},"codeExamples":[]}

PUNSUBSCRIBE

PUNSUBSCRIBE [pattern [pattern ...]]

No method signature available for this client.

No method signature available for this client.

No method signature available for this client.

No method signature available for this client.

No method signature available for this client.

No method signature available for this client.

No method signature available for this client.

No method signature available for this client.

No method signature available for this client.

No method signature available for this client.

No method signature available for this client.

No method signature available for this client.

Available since:
Redis Open Source 2.0.0
Time complexity:
O(N) where N is the number of patterns to unsubscribe.
ACL categories:
@pubsub, @slow,
Compatibility:
Redis Software and Redis Cloud compatibility

Unsubscribes the client from the specified patterns, or from all patterns if none are specified.

If you don’t specify any patterns, the client unsubscribes from all previously subscribed patterns. The client receives one message for each pattern it unsubscribes from.

Optional arguments

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
βœ… Standard
βœ… Standard

Return information

When successful, this command doesn't return anything. Instead, for each pattern, one message with the first element being the string punsubscribe is pushed as a confirmation that the command succeeded.
When successful, this command doesn't return anything. Instead, for each pattern, one message with the first element being the string punsubscribe is pushed as a confirmation that the command succeeded.