public function exists($commandKey, $cacheKey)
{
return array_key_exists($commandKey, $this->cachedResults) && array_key_exists($cacheKey, $this->cachedResults[$commandKey]);
}
public function testExists() { $result = (object) array('a' => 123); $this->assertFalse($this->requestCache->exists('TestCommand', 'cache-key-123')); $this->requestCache->put('TestCommand', 'cache-key-123', $result); $this->assertTrue($this->requestCache->exists('TestCommand', 'cache-key-123')); }