> if(cacheValue && strcmp(cacheValue, "NOTFOUND")) strcmp returns 0 on a successful match, so it'll only search when the value is not in the cache, or when it is NOTFOUND.