mirror of
https://github.com/fluencelabs/redis
synced 2025-06-17 19:21:21 +00:00
Modules: RedisModule_ReplyWithNull() implemented.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user