public function create($cacheIdentifier, $backendObjectName, array $backendOptions = []): CacheItemPoolInterface
    {
        $backend = $this->instantiateBackend($backendObjectName, $backendOptions, $this->environmentConfiguration);
        $cache = $this->instantiateCache($cacheIdentifier, $backend);
        // TODO: Remove this need.
        $fakeFrontend = new VariableFrontend($cacheIdentifier, $backend);
        $backend->setCache($fakeFrontend);

        return $cache;
    }
public function create($cacheIdentifier, $backendObjectName, array $backendOptions = []): CacheItemPoolInterface
    {
        $backend = $this->instantiateBackend($backendObjectName, $backendOptions, $this->environmentConfiguration);
        $cache = $this->instantiateCache($cacheIdentifier, $backend);
        // TODO: Remove this need.
        $fakeFrontend = new VariableFrontend($cacheIdentifier, $backend);
        $backend->setCache($fakeFrontend);

        return $cache;
    }
public function create ( $ cacheIdentifier , $ backendObjectName , array $ backendOptions = [ ] ) : CacheItemPoolInterface { $ backend = $ this -> instantiateBackend ( $ backendObjectName , $ backendOptions , $ this -> environmentConfiguration ) ; $ cache = $ this -> instantiateCache ( $ cacheIdentifier , $ backend ) ; // TODO: Remove this need. $ fakeFrontend = new VariableFrontend ( $ cacheIdentifier , $ backend ) ; $ backend -> setCache ( $ fakeFrontend ) ; return $ cache ; }
Factory method which creates the specified cache along with the specified kind of backend.
The identifier uniquely identifiers the specific cache, so that entries inside are unique.

@param string $cacheIdentifier The name / identifier of the cache to create.
@param string $backendObjectName Object name of the cache backend
@param array $backendOptions (optional) Array of backend options
@return CacheItemPoolInterface
@throws InvalidBackendException
Factory method which creates the specified cache along with the specified kind of backend . The identifier uniquely identifiers the specific cache so that entries inside are unique .