PUNSUBSCRIBE

Syntax
PUNSUBSCRIBE [pattern [pattern ...]]
Available since:
2.0.0
Time complexity:
O(N) where N is the number of patterns to unsubscribe.
ACL categories:
@pubsub, @slow,

从给定的模式中取消订阅客户端,如果没有给出任何模式,则从所有模式中取消订阅。

当没有指定模式时,客户端将从所有先前订阅的模式中取消订阅。 在这种情况下,将为每个取消订阅的模式向客户端发送一条消息。

RESP2/RESP3 回复

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.
RATE THIS PAGE
Back to top ↑