public function get($commandKey, $cacheKey)
{
if ($this->exists($commandKey, $cacheKey)) {
return $this->cachedResults[$commandKey][$cacheKey];
}
return null;
}
public function testClearAll() { $result = (object) array('a' => 123); $this->requestCache->put('TestCommand', 'cache-key-123', $result); $this->assertEquals($result, $this->requestCache->get('TestCommand', 'cache-key-123')); $this->requestCache->clearAll('TestCommand'); $this->assertNull($this->requestCache->get('TestCommand', 'cache-key-123')); }