From 7480e618ec785ba8a1c74c8a150cffe5880fb3bb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 4 Jan 2023 08:19:32 +0100 Subject: Adding upstream version 1.13.0. Signed-off-by: Daniel Baumann --- iredis/data/commands/pubsub-shardnumsub.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 iredis/data/commands/pubsub-shardnumsub.md (limited to 'iredis/data/commands/pubsub-shardnumsub.md') diff --git a/iredis/data/commands/pubsub-shardnumsub.md b/iredis/data/commands/pubsub-shardnumsub.md new file mode 100644 index 0000000..8d09d43 --- /dev/null +++ b/iredis/data/commands/pubsub-shardnumsub.md @@ -0,0 +1,19 @@ +Returns the number of subscribers for the specified shard channels. + +Note that it is valid to call this command without channels, in this case it will just return an empty list. + +Cluster note: in a Redis Cluster, `PUBSUB`'s replies in a cluster only report information from the node's Pub/Sub context, rather than the entire cluster. + +@return + +@array-reply: a list of channels and number of subscribers for every channel. + +The format is channel, count, channel, count, ..., so the list is flat. The order in which the channels are listed is the same as the order of the shard channels specified in the command call. + +@examples + +``` +> PUBSUB SHARDNUMSUB orders +1) "orders" +2) (integer) 1 +``` -- cgit v1.2.3