summaryrefslogtreecommitdiffstats
path: root/src/commands/pubsub-shardchannels.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/pubsub-shardchannels.json')
-rw-r--r--src/commands/pubsub-shardchannels.json31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/commands/pubsub-shardchannels.json b/src/commands/pubsub-shardchannels.json
new file mode 100644
index 0000000..7aa0a7a
--- /dev/null
+++ b/src/commands/pubsub-shardchannels.json
@@ -0,0 +1,31 @@
+{
+ "SHARDCHANNELS": {
+ "summary": "Returns the active shard channels.",
+ "complexity": "O(N) where N is the number of active shard channels, and assuming constant time pattern matching (relatively short shard channels).",
+ "group": "pubsub",
+ "since": "7.0.0",
+ "arity": -2,
+ "container": "PUBSUB",
+ "function": "pubsubCommand",
+ "command_flags": [
+ "PUBSUB",
+ "LOADING",
+ "STALE"
+ ],
+ "arguments": [
+ {
+ "name": "pattern",
+ "type": "pattern",
+ "optional": true
+ }
+ ],
+ "reply_schema": {
+ "description": "a list of active channels, optionally matching the specified pattern",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "uniqueItems": true
+ }
+ }
+}