public function setCache(FrontendInterface $cache)
    {
        $this->cache = $cache;
        $this->cacheIdentifier = $this->cache->getIdentifier();
    }
public function setCache(FrontendInterface $cache)
    {
        $this->cache = $cache;
        $this->cacheIdentifier = $this->cache->getIdentifier();
    }
public function setCache ( FrontendInterface $ cache ) { $ this -> cache = $ cache ; $ this -> cacheIdentifier = $ this -> cache -> getIdentifier ( ) ; }
Sets a reference to the cache frontend which uses this backend

@param FrontendInterface $cache The frontend for this backend
@return void
@api
Sets a reference to the cache frontend which uses this backend