summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2022-05-31 13:55:25 +0800
committerGitHub <noreply@github.com>2022-05-31 08:55:25 +0300
commit805191c791e1f84618c1f69dacec27ac3fecd1e4 (patch)
treec43de169d3bf63379361a0ed58e064ac32fe3961 /src/commands
parentbb1de082eac26d5242733eb0b40959bd9de2e15b (diff)
downloadredis-805191c791e1f84618c1f69dacec27ac3fecd1e4.tar.gz
rename channel to shardchannel in sharded pubsub commands (#10738)
since the sharded pubsub is different with pubsub, it's better to give users a hint to make it more clear.
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/pubsub-shardchannels.json2
-rw-r--r--src/commands/pubsub-shardnumsub.json4
-rw-r--r--src/commands/spublish.json2
-rw-r--r--src/commands/ssubscribe.json2
-rw-r--r--src/commands/sunsubscribe.json4
5 files changed, 7 insertions, 7 deletions
diff --git a/src/commands/pubsub-shardchannels.json b/src/commands/pubsub-shardchannels.json
index 3bffa221f..90b907d30 100644
--- a/src/commands/pubsub-shardchannels.json
+++ b/src/commands/pubsub-shardchannels.json
@@ -1,7 +1,7 @@
{
"SHARDCHANNELS": {
"summary": "List active shard channels",
- "complexity": "O(N) where N is the number of active shard channels, and assuming constant time pattern matching (relatively short 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,
diff --git a/src/commands/pubsub-shardnumsub.json b/src/commands/pubsub-shardnumsub.json
index 8c51549b0..89187696a 100644
--- a/src/commands/pubsub-shardnumsub.json
+++ b/src/commands/pubsub-shardnumsub.json
@@ -1,7 +1,7 @@
{
"SHARDNUMSUB": {
"summary": "Get the count of subscribers for shard channels",
- "complexity": "O(N) for the SHARDNUMSUB subcommand, where N is the number of requested channels",
+ "complexity": "O(N) for the SHARDNUMSUB subcommand, where N is the number of requested shard channels",
"group": "pubsub",
"since": "7.0.0",
"arity": -2,
@@ -14,7 +14,7 @@
],
"arguments": [
{
- "name": "channel",
+ "name": "shardchannel",
"type": "string",
"optional": true,
"multiple": true
diff --git a/src/commands/spublish.json b/src/commands/spublish.json
index 816ff0ad3..6ed748f95 100644
--- a/src/commands/spublish.json
+++ b/src/commands/spublish.json
@@ -15,7 +15,7 @@
],
"arguments": [
{
- "name": "channel",
+ "name": "shardchannel",
"type": "string"
},
{
diff --git a/src/commands/ssubscribe.json b/src/commands/ssubscribe.json
index c49f801a6..a63d520f1 100644
--- a/src/commands/ssubscribe.json
+++ b/src/commands/ssubscribe.json
@@ -14,7 +14,7 @@
],
"arguments": [
{
- "name": "channel",
+ "name": "shardchannel",
"type": "string",
"multiple": true
}
diff --git a/src/commands/sunsubscribe.json b/src/commands/sunsubscribe.json
index 5b428237b..df9ae9cac 100644
--- a/src/commands/sunsubscribe.json
+++ b/src/commands/sunsubscribe.json
@@ -1,7 +1,7 @@
{
"SUNSUBSCRIBE": {
"summary": "Stop listening for messages posted to the given shard channels",
- "complexity": "O(N) where N is the number of clients already subscribed to a channel.",
+ "complexity": "O(N) where N is the number of clients already subscribed to a shard channel.",
"group": "pubsub",
"since": "7.0.0",
"arity": -1,
@@ -14,7 +14,7 @@
],
"arguments": [
{
- "name": "channel",
+ "name": "shardchannel",
"type": "string",
"optional": true,
"multiple": true