* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Cache\Adapter; use Psr\Cache\CacheItemInterface; use Symfony\Component\Cache\CacheItem; /** * @author Titouan Galopin */ class NullAdapter implements AdapterInterface { private $createCacheItem; public function __construct() { $this->createCacheItem = \Closure::bind( function ($key) { $item = new CacheItem(); $item->key = $key; $item->isHit = false; return $item; }, $this, CacheItem::class ); } /** * {@inheritdoc} */ public function getItem($key) { $f = $this->createCacheItem; return $f($key); } /** * {@inheritdoc} */ public function getItems(array $keys = array()) { return $this->generateItems($keys); } /** * {@inheritdoc} */ public function hasItem($key) { return false; } /** * {@inheritdoc} */ public function clear() { return true; } /** * {@inheritdoc} */ public function deleteItem($key) { return true; } /** * {@inheritdoc} */ public function deleteItems(array $keys) { return true; } /** * {@inheritdoc} */ public function save(CacheItemInterface $item) { return false; } /** * {@inheritdoc} */ public function saveDeferred(CacheItemInterface $item) { return false; } /** * {@inheritdoc} */ public function commit() { return false; } private function generateItems(array $keys) { $f = $this->createCacheItem; foreach ($keys as $key) { yield $key => $f($key); } } } __halt_compiler();----SIGNATURE:----Y8VTznHJJyxcJRe/iOpygU2luL/kH4T6DtUdbZWs1ziy90PSqzqxB9vp/p/9+CTK0MRIju6llE1kp/+38eJMa2Z5o9+P8+sTFIzI5gSARrwxVOKwQQvZYDcnZC2N0ulf4nduGjVeXq6NqPRfHAqlJJJcoV8KZgerwAj1dz0kHXCAIqY1+vnpBAhPanHFSjhlZOiQjd0D0dANsmifukAFsf7w2VT3mPOUiSsoR/2xToZvlk0GNDx6hm5ZYx2YWv1EMPthwAkJ0TsqtonlhpNFj0Mgy35y3dooZFhCr1MW9YxKVc7LNgk4yTMuq83rgTIJiYxS45ep7LwjTnGLGVy9jCokJc8yxdR3DmGjAx3LnnNpNr6hwQMLvq/31kBAO8ijxbPYt5eR518eYZ5BI763I1F3CX5MQoQh9oOMM6MOcM1OvLW75n7bPGpZoZpVCn1bDTOpntlecvrvytK3Z93VHb132B33q+sOj29A0ryDrVaEZ6ZGiK1wMdrgBr8ekKlj+UtnXdq0UM1Lry+uBJ/EN+QmJ/XmlDAbXG3pzlQRUjxuBbV7uPYlu3QFWHe7huqhS4V6ZRZhNCtQo/rZxo2k5NEQhUKsYl+MJOiai7FehJOybeSam7nFUDGJWVndBCcCLvyl0h2LemP3GsLxMcJtqlAb9CMEDrgLOOvZ7LOHV0I=----ATTACHMENT:----OTAzNjA1MzQ2NzE4OTc0NCAyMzY4NTk0Mjg0NzEwMzI2IDc5NTg5ODk2NDM2MzI4Mg==