Rename cron command to KEYDB.CRON and add help

Former-commit-id: 3eb847e28f6df45528dcebc6761290ff60248e78
This commit is contained in:
John Sully 2020-03-01 19:17:58 -05:00
parent ec4eb534d7
commit 765ffea018
2 changed files with 8 additions and 2 deletions

View File

@ -1168,7 +1168,13 @@ struct commandHelp {
"destination numkeys key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]",
"Add multiple sorted sets and store the resulting sorted set in a new key",
4,
"2.0.0" }
"2.0.0" },
{ "KEYDB.CRON",
"name [single/repeat] [optional: start] delay script numkeys [key N] [arg N]",
"Run a specified script after start + delay, optionally repeating every delay interval. The job may be cancelled by deleting the key associated with the job (name parameter)",
10,
"6.5.2"
}
};
#endif

View File

@ -1026,7 +1026,7 @@ struct redisCommand redisCommandTable[] = {
"read-only fast noprop",
0,NULL,0,0,0,0,0,0},
{"cron",cronCommand,-5,
{"keydb.cron",cronCommand,-5,
"write use-memory",
0,NULL,1,1,1,0,0,0},
};