diff options
-rw-r--r-- | src/commands.c | 8 | ||||
-rw-r--r-- | src/commands/eval_ro.json | 2 | ||||
-rw-r--r-- | src/commands/evalsha_ro.json | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/src/commands.c b/src/commands.c index 07f09bc15..f0bd067a5 100644 --- a/src/commands.c +++ b/src/commands.c @@ -3318,8 +3318,8 @@ struct redisCommandArg EVALSHA_Args[] = { struct redisCommandArg EVALSHA_RO_Args[] = { {"sha1",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"numkeys",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_MULTIPLE}, -{"arg",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE}, +{"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE}, +{"arg",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE}, {0} }; @@ -3335,8 +3335,8 @@ struct redisCommandArg EVALSHA_RO_Args[] = { struct redisCommandArg EVAL_RO_Args[] = { {"script",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"numkeys",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE}, -{"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_MULTIPLE}, -{"arg",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE}, +{"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE}, +{"arg",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE}, {0} }; diff --git a/src/commands/eval_ro.json b/src/commands/eval_ro.json index 65fd866a0..2911521d7 100644 --- a/src/commands/eval_ro.json +++ b/src/commands/eval_ro.json @@ -51,11 +51,13 @@ "name": "key", "type": "key", "key_spec_index": 0, + "optional":true, "multiple": true }, { "name": "arg", "type": "string", + "optional":true, "multiple": true } ] diff --git a/src/commands/evalsha_ro.json b/src/commands/evalsha_ro.json index d76313540..b08ce67ad 100644 --- a/src/commands/evalsha_ro.json +++ b/src/commands/evalsha_ro.json @@ -50,11 +50,13 @@ "name": "key", "type": "key", "key_spec_index": 0, + "optional":true, "multiple": true }, { "name": "arg", "type": "string", + "optional":true, "multiple": true } ] |