protected function applyCacheConfiguration(Configuration $config)
    {
        $cache = new CacheAdapter();
        // must use ObjectManager in compile phase...
        $cache->setCache($this->objectManager->get(CacheManager::class)->getCache('Flow_Persistence_Doctrine'));
        $config->setMetadataCacheImpl($cache);
        $config->setQueryCacheImpl($cache);

        $resultCache = new CacheAdapter();
        // must use ObjectManager in compile phase...
        $resultCache->setCache($this->objectManager->get(CacheManager::class)->getCache('Flow_Persistence_Doctrine_Results'));
        $config->setResultCacheImpl($resultCache);
    }
protected function applyCacheConfiguration(Configuration $config)
    {
        $cache = new CacheAdapter();
        // must use ObjectManager in compile phase...
        $cache->setCache($this->objectManager->get(CacheManager::class)->getCache('Flow_Persistence_Doctrine'));
        $config->setMetadataCacheImpl($cache);
        $config->setQueryCacheImpl($cache);

        $resultCache = new CacheAdapter();
        // must use ObjectManager in compile phase...
        $resultCache->setCache($this->objectManager->get(CacheManager::class)->getCache('Flow_Persistence_Doctrine_Results'));
        $config->setResultCacheImpl($resultCache);
    }
protected function applyCacheConfiguration ( Configuration $ config ) { $ cache = new CacheAdapter ( ) ; // must use ObjectManager in compile phase... $ cache -> setCache ( $ this -> objectManager -> get ( CacheManager :: class ) -> getCache ( 'Flow_Persistence_Doctrine' ) ) ; $ config -> setMetadataCacheImpl ( $ cache ) ; $ config -> setQueryCacheImpl ( $ cache ) ; $ resultCache = new CacheAdapter ( ) ; // must use ObjectManager in compile phase... $ resultCache -> setCache ( $ this -> objectManager -> get ( CacheManager :: class ) -> getCache ( 'Flow_Persistence_Doctrine_Results' ) ) ; $ config -> setResultCacheImpl ( $ resultCache ) ; }
Apply basic cache configuration for the metadata, query and result caches.

@param Configuration $config
Apply basic cache configuration for the metadata query and result caches .