for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Egils\Component\Cache package.
*
* (c) Egidijus Lukauskas <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Egils\Component\Cache\Adapter;
use Psr\Cache\CacheItemInterface;
use Psr\Cache\CacheItemPoolInterface;
class DefaultCacheAdapter implements CacheItemPoolInterface
{
/** @var CacheItemPoolInterface */
private $defaultAdapter;
public function __construct(CacheItemPoolInterface $cacheItemPool)
$this->defaultAdapter = $cacheItemPool;
}
/**
* {@inheritdoc}
public function getItem($key)
return $this->defaultAdapter->getItem($key);
public function getItems(array $keys = [])
return $this->defaultAdapter->getItems($keys);
public function clear()
return $this->defaultAdapter->clear();
public function deleteItems(array $keys)
return $this->defaultAdapter->deleteItems($keys);
public function save(CacheItemInterface $item)
return $this->defaultAdapter->save($item);
public function saveDeferred(CacheItemInterface $item)
return $this->defaultAdapter->saveDeferred($item);
public function commit()
return $this->defaultAdapter->commit();