public function generateMap()
    {
        $map = array();
        $database = $this->binding->getDatabase()->getData();

        foreach ($database->classes as $class) {
            $map[$class->name] = $class->clusters;
        }

        $this->map = $map;
        $this->cache->save($this->getCacheKey(), $map);
    }
public function generateMap()
    {
        $map = array();
        $database = $this->binding->getDatabase()->getData();

        foreach ($database->classes as $class) {
            $map[$class->name] = $class->clusters;
        }

        $this->map = $map;
        $this->cache->save($this->getCacheKey(), $map);
    }
public function generateMap ( ) { $ map = array ( ) ; $ database = $ this -> binding -> getDatabase ( ) -> getData ( ) ; foreach ( $ database -> classes as $ class ) { $ map [ $ class -> name ] = $ class -> clusters ; } $ this -> map = $ map ; $ this -> cache -> save ( $ this -> getCacheKey ( ) , $ map ) ; }
Creates the mapping of classes to clusters,
it is public so it can be called forcibly
which will be handy if it's done in some
cache-warmup task.
Creates the mapping of classes to clusters it is public so it can be called forcibly which will be handy if it s done in some cache - warmup task .