for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AssetManager\Cache;
use Assetic\Cache\CacheInterface;
use Zend\Cache\Storage\StorageInterface;
/**
* Zend Cache Storage Adapter for Assetic
*/
class ZendCacheAdapter implements CacheInterface
{
/** @var StorageInterface */
protected $zendCache;
* Constructor
*
* @param StorageInterface $zendCache Zend Configured Cache Storage
public function __construct(StorageInterface $zendCache)
$this->zendCache = $zendCache;
}
* {@inheritDoc}
public function has($key)
return $this->zendCache->hasItem($key);
public function get($key)
return $this->zendCache->getItem($key);
public function set($key, $value)
return $this->zendCache->setItem($key, $value);
public function remove($key)
return $this->zendCache->removeItem($key);