This seems kinda random but basically I have the following member function in my caching class:
public function increment($key, $expires = 0)
{
// Requires OPT_BINARY_PROTOCOL
return $this->cache->increment($key, 1, 0, $expires);
}
So then I want to do flood protection like this:
$cache->increment('foo', 10) > 50
90% of the time it works but for some reason sometimes it returns some ridiculously high integer and I can't pinpoint how/why or how to reproduce. Memory issue????