MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_CallReplyInteger

Function RM_CallReplyInteger

src/module.cpp:4017–4021  ·  view source on GitHub ↗

Return the long long of an integer reply. */

Source from the content-addressed store, hash-verified

4015
4016/* Return the long long of an integer reply. */
4017long long RM_CallReplyInteger(RedisModuleCallReply *reply) {
4018 moduleParseCallReply(reply);
4019 if (reply->type != REDISMODULE_REPLY_INTEGER) return LLONG_MIN;
4020 return reply->val.ll;
4021}
4022
4023/* Return the pointer and length of a string or error reply. */
4024const char *RM_CallReplyStringPtr(RedisModuleCallReply *reply, size_t *len) {

Callers

nothing calls this directly

Calls 1

moduleParseCallReplyFunction · 0.85

Tested by

no test coverage detected