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

Function isInvalidateReply

src/redis-cli.c:763–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763static int isInvalidateReply(redisReply *reply) {
764 return reply->type == REDIS_REPLY_PUSH && reply->elements == 2 &&
765 reply->element[0]->type == REDIS_REPLY_STRING &&
766 !strncmp(reply->element[0]->str, "invalidate", 10) &&
767 reply->element[1]->type == REDIS_REPLY_ARRAY;
768}
769
770/* Special display handler for RESP3 'invalidate' messages.
771 * This function does not validate the reply, so it should

Callers 1

cliPushHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected