for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author @jayS-de <[email protected]>
* @created 19.01.15, 17:06
*/
namespace Commercetools\Core\Cache;
* @package Commercetools\Core\Cache
class NullCacheAdapter extends AbstractCacheAdapter
{
protected $cache = [];
* @param $key
* @param $options
* @return bool
public function has($key, $options = null)
return isset($this->cache[$key]);
}
public function fetch($key, $options = null)
if ($this->has($key)) {
return $this->cache[$key];
return false;
* @param $data
* @param $lifeTime
public function store($key, $data, $lifeTime = null, $options = null)
$this->cache[$key] = $data;
return true;
public function remove($key, $options = null)
unset($this->cache[$key]);