/**
  * Sets a reference to the cache frontend which uses this backend
  *
  * @param t3lib_cache_frontend_Frontend The frontend for this backend
  * @return void
  * @author Robert Lemke <*****@*****.**>
  */
 public function setCache(t3lib_cache_frontend_Frontend $cache)
 {
     $this->cache = $cache;
     $this->cacheIdentifier = $this->cache->getIdentifier();
 }
 /**
  * Registers a cache so it can be retrieved at a later point.
  *
  * @param t3lib_cache_frontend_Frontend The cache frontend to be registered
  * @return void
  * @throws t3lib_cache_exception_DuplicateIdentifier if a cache with the given identifier has already been registered.
  * @author Robert Lemke <*****@*****.**>
  */
 public function registerCache(t3lib_cache_frontend_Frontend $cache)
 {
     $identifier = $cache->getIdentifier();
     if (isset($this->caches[$identifier])) {
         throw new t3lib_cache_exception_DuplicateIdentifier('A cache with identifier "' . $identifier . '" has already been registered.', 1203698223);
     }
     $this->caches[$identifier] = $cache;
 }