MCPcopy Create free account
hub / github.com/F-Stack/f-stack / isInvalidateReply

Function isInvalidateReply

app/redis-6.2.6/src/redis-cli.c:956–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954}
955
956static int isInvalidateReply(redisReply *reply) {
957 return reply->type == REDIS_REPLY_PUSH && reply->elements == 2 &&
958 reply->element[0]->type == REDIS_REPLY_STRING &&
959 !strncmp(reply->element[0]->str, "invalidate", 10) &&
960 reply->element[1]->type == REDIS_REPLY_ARRAY;
961}
962
963/* Special display handler for RESP3 'invalidate' messages.
964 * This function does not validate the reply, so it should

Callers 1

cliPushHandlerFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected