public function addCache(CacheInterface $cache)
    {
        $this->cacheMap[$cache->getName()] = $cache;
        $this->cacheNames[]                = $cache->getName();
    }
public function addCache(CacheInterface $cache)
    {
        $this->cacheMap[$cache->getName()] = $cache;
        $this->cacheNames[]                = $cache->getName();
    }
public function addCache ( CacheInterface $ cache ) { $ this -> cacheMap [ $ cache -> getName ( ) ] = $ cache ; $ this -> cacheNames [ ] = $ cache -> getName ( ) ; }
Adds a Cache

@param CacheInterface $cache
Adds a Cache