protected function store(array $routes = [])
    {
        // Get cache instance - at this point all PSR-6 compatibles are allowed
        $cache = $this->getRegistry()->getCache();

        // Check if we use scopes ...
        if ($cache instanceof Doozr_Cache_Service) {
            $cache->create(
                $this->getUuid(),
                $routes,
                null,
                $this->getScope()
            );

        } else {
            $item = new CacheItem($this->getUuid());
            $item->set($routes);

            $cache->save($item);
        }
    }
protected function store(array $routes = [])
    {
        // Get cache instance - at this point all PSR-6 compatibles are allowed
        $cache = $this->getRegistry()->getCache();

        // Check if we use scopes ...
        if ($cache instanceof Doozr_Cache_Service) {
            $cache->create(
                $this->getUuid(),
                $routes,
                null,
                $this->getScope()
            );

        } else {
            $item = new CacheItem($this->getUuid());
            $item->set($routes);

            $cache->save($item);
        }
    }
protected function store ( array $ routes = [ ] ) { // Get cache instance - at this point all PSR-6 compatibles are allowed $ cache = $ this -> getRegistry ( ) -> getCache ( ) ; // Check if we use scopes ... if ( $ cache instanceof Doozr_Cache_Service ) { $ cache -> create ( $ this -> getUuid ( ) , $ routes , null , $ this -> getScope ( ) ) ; } else { $ item = new CacheItem ( $ this -> getUuid ( ) ) ; $ item -> set ( $ routes ) ; $ cache -> save ( $ item ) ; } }
Stores routes in cache.

@param array $routes Routes to store

@author Benjamin Carl <opensource@clickalicious.de>
Stores routes in cache .