src/Bridge/Registry.php
public function getCachePool($name)
    {
        if (array_key_exists($name, $this->cachePools)) {
            return $this->cachePools[$name];
        }

        throw new KeyNotFoundInSetException($name, array_keys($this->cachePools), 'cache pools');
    }
public function getCachePool($name)
    {
        if (array_key_exists($name, $this->cachePools)) {
            return $this->cachePools[$name];
        }

        throw new KeyNotFoundInSetException($name, array_keys($this->cachePools), 'cache pools');
    }
public function getCachePool ( $ name ) { if ( array_key_exists ( $ name , $ this -> cachePools ) ) { return $ this -> cachePools [ $ name ] ; } throw new KeyNotFoundInSetException ( $ name , array_keys ( $ this -> cachePools ) , 'cache pools' ) ; }
Returns a cache pool.

@param string $name Cache pool name

@throws KeyNotFoundInSetException

@return CacheItemPoolInterface
Returns a cache pool .