From 3eb847e28f6df45528dcebc6761290ff60248e78 Mon Sep 17 00:00:00 2001 From: John Sully Date: Sun, 1 Mar 2020 19:17:58 -0500 Subject: [PATCH] Rename cron command to KEYDB.CRON and add help --- src/help.h | 8 +++++++- src/server.cpp | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/help.h b/src/help.h index 34f4e77c7..d3870d490 100644 --- a/src/help.h +++ b/src/help.h @@ -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 diff --git a/src/server.cpp b/src/server.cpp index 837b1c38e..311f2bffa 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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}, };