summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/sunsubscribe.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/sunsubscribe.md')
-rw-r--r--iredis/data/commands/sunsubscribe.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/iredis/data/commands/sunsubscribe.md b/iredis/data/commands/sunsubscribe.md
new file mode 100644
index 0000000..7ce76c3
--- /dev/null
+++ b/iredis/data/commands/sunsubscribe.md
@@ -0,0 +1,8 @@
+Unsubscribes the client from the given shard channels, or from all of them if none is given.
+
+When no shard channels are specified, the client is unsubscribed from all the previously subscribed shard channels.
+In this case a message for every unsubscribed shard channel will be sent to the client.
+
+Note: The global channels and shard channels needs to be unsubscribed from separately.
+
+For more information about sharded Pub/Sub, see [Sharded Pub/Sub](/topics/pubsub#sharded-pubsub).