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);
        }
    }