* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Cache; use Doctrine\Common\Cache\CacheProvider; use Psr\Cache\CacheItemPoolInterface; /** * @author Nicolas Grekas */ class DoctrineProvider extends CacheProvider implements PruneableInterface, ResettableInterface { private $pool; public function __construct(CacheItemPoolInterface $pool) { $this->pool = $pool; } /** * {@inheritdoc} */ public function prune() { return $this->pool instanceof PruneableInterface && $this->pool->prune(); } /** * {@inheritdoc} */ public function reset() { if ($this->pool instanceof ResettableInterface) { $this->pool->reset(); } $this->setNamespace($this->getNamespace()); } /** * {@inheritdoc} */ protected function doFetch($id) { $item = $this->pool->getItem(rawurlencode($id)); return $item->isHit() ? $item->get() : false; } /** * {@inheritdoc} */ protected function doContains($id) { return $this->pool->hasItem(rawurlencode($id)); } /** * {@inheritdoc} */ protected function doSave($id, $data, $lifeTime = 0) { $item = $this->pool->getItem(rawurlencode($id)); if (0 < $lifeTime) { $item->expiresAfter($lifeTime); } return $this->pool->save($item->set($data)); } /** * {@inheritdoc} */ protected function doDelete($id) { return $this->pool->deleteItem(rawurlencode($id)); } /** * {@inheritdoc} */ protected function doFlush() { $this->pool->clear(); } /** * {@inheritdoc} */ protected function doGetStats() { } } __halt_compiler();----SIGNATURE:----RJPBvMBurnyQlugGHOrx1hHBcxIiBwwy/qywq0oIPMM2MFVRnpwUg6/qsRUtyuYWi9g7xKk8Zbw/ANIaYcJZW6+RzTyPT9wFgGMlklG1AMLt+naCJvqqGre5pqb2dMw+eNz3rZmCQRBiUc8ql6n46ItBJuvst1gf7WlYnDG5Z43M/0cNWMJwAvqj9cI25mdz983wshU1GC3Gck14v9SVH68qrGsV0ww0lZsUx1vtKmwfum/Oe7RUaCsiz31sMj7gqyzggx9JyOqoMeHLCaTymtEXFgIHBSrWdPIs+Cd8Ih2gn16Mqm5lZWnc0sAHm7zmBUbjKpK9KC1en0N+tKVH1ZSiu2Lw7qszhxQqu8WTdifufotjcxypSMDQkitZGuEYsKJEKdoXp5pElHcRWkvMcYIoNF++/X7l+4/6bexCloRVjor83JW9lGGqk8BzimqCKFoWjVW0YciQV+DWi9pD1023cu4+IKKCSg7M+WKkHjP1+vU2250npub3RzKxVEEVV1JsugEhucy6BZwZq+mQmh+N3rIW5qcLJK60Pm4slusplDFfL5o6m4YcKx63Blwn2+yfSIblOZQ1lt2pwEk/peGNuTKFFrMcYuYFwOFmEOB6gpUxovE7oKcRDEPSf6DnCfSV/w8NNqjxtMxc77U18u/g/+J3G3FYsFJGmbK3xwE=----ATTACHMENT:----ODQyNjU2Mjc1NTUzNDI5MCAzODczMTM1MTg1NzI5MTI3IDg4Mzc4MDc5NjU4ODA5NzU=