mirror of https://mirror.osredm.com/root/redis.git
Add FILTER-EF option.
This commit is contained in:
parent
3abc801d7a
commit
68683e181c
8
vset.c
8
vset.c
|
@ -794,6 +794,14 @@ int VSIM_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
|
|||
return RedisModule_ReplyWithError(ctx, "ERR invalid EF");
|
||||
}
|
||||
j += 2;
|
||||
} else if (!strcasecmp(opt, "FILTER-EF") && j+1 < argc) {
|
||||
if (RedisModule_StringToLongLong(argv[j+1], &filter_ef) !=
|
||||
REDISMODULE_OK || filter_ef <= 0)
|
||||
{
|
||||
RedisModule_Free(vec);
|
||||
return RedisModule_ReplyWithError(ctx, "ERR invalid FILTER-EF");
|
||||
}
|
||||
j += 2;
|
||||
} else if (!strcasecmp(opt, "FILTER") && j+1 < argc) {
|
||||
RedisModuleString *exprarg = argv[j+1];
|
||||
size_t exprlen;
|
||||
|
|
Loading…
Reference in New Issue