Modules: RedisModule_ReplyWithNull() implemented.

This commit is contained in:
antirez
2016-04-05 15:53:04 +02:00
parent e711a9ac45
commit 2967c00c2c
2 changed files with 9 additions and 0 deletions

View File

@ -464,6 +464,12 @@ int RM_ReplyWithString(RedisModuleCtx *ctx, RedisModuleString *str) {
return REDISMODULE_OK;
}
/* Reply with NULL. */
int RedisModule_ReplyWithNull(RedisModuleCtx *ctx) {
addReply(ctx->client,shared.nullbulk);
return REDISMODULE_OK;
}
/* --------------------------------------------------------------------------
* Commands replication API
* -------------------------------------------------------------------------- */
@ -1197,6 +1203,7 @@ void moduleRegisterCoreAPI(void) {
REGISTER_API(ReplyWithArray);
REGISTER_API(ReplyWithString);
REGISTER_API(ReplyWithStringBuffer);
REGISTER_API(ReplyWithNull);
REGISTER_API(GetSelectedDb);
REGISTER_API(SelectDb);
REGISTER_API(OpenKey);