src/ChainCache.php
public function addCache(CacheInterface $cache, $priority = 0)
    {
        $this->caches[spl_object_hash($cache)] = array(
            'cache' => $cache,
            'priority' => $priority
        );

        $this->sortedCaches = null;
    }
public function addCache(CacheInterface $cache, $priority = 0)
    {
        $this->caches[spl_object_hash($cache)] = array(
            'cache' => $cache,
            'priority' => $priority
        );

        $this->sortedCaches = null;
    }
public function addCache ( CacheInterface $ cache , $ priority = 0 ) { $ this -> caches [ spl_object_hash ( $ cache ) ] = array ( 'cache' => $ cache , 'priority' => $ priority ) ; $ this -> sortedCaches = null ; }
Add cache to storage

@param CacheInterface $cache
@param int            $priority
Add cache to storage