| 761 | } |
| 762 | |
| 763 | static 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 |