public function create(string $cacheIdentifier, string $cacheObjectName, string $backendObjectName, array $backendOptions = []): FrontendInterface
    {
        $backend = $this->instantiateBackend($backendObjectName, $backendOptions, $this->environmentConfiguration);
        $cache = $this->instantiateCache($cacheIdentifier, $cacheObjectName, $backend);
        $backend->setCache($cache);

        return $cache;
    }
public function create(string $cacheIdentifier, string $cacheObjectName, string $backendObjectName, array $backendOptions = []): FrontendInterface
    {
        $backend = $this->instantiateBackend($backendObjectName, $backendOptions, $this->environmentConfiguration);
        $cache = $this->instantiateCache($cacheIdentifier, $cacheObjectName, $backend);
        $backend->setCache($cache);

        return $cache;
    }
public function create ( string $ cacheIdentifier , string $ cacheObjectName , string $ backendObjectName , array $ backendOptions = [ ] ) : FrontendInterface { $ backend = $ this -> instantiateBackend ( $ backendObjectName , $ backendOptions , $ this -> environmentConfiguration ) ; $ cache = $ this -> instantiateCache ( $ cacheIdentifier , $ cacheObjectName , $ backend ) ; $ backend -> setCache ( $ cache ) ; return $ cache ; }
Factory method which creates the specified cache along with the specified kind of backend.
After creating the cache, it will be registered at the cache manager.

@param string $cacheIdentifier The name / identifier of the cache to create
@param string $cacheObjectName Object name of the cache frontend
@param string $backendObjectName Object name of the cache backend
@param array $backendOptions (optional) Array of backend options
@return FrontendInterface The created cache frontend
@throws InvalidBackendException
@throws InvalidCacheException
@api
Factory method which creates the specified cache along with the specified kind of backend . After creating the cache it will be registered at the cache manager .