protected function getCacheImpl(CacheConfigurationInterface $cacheConfiguration)
    {

        // load the factory class
        $factory = $cacheConfiguration->getFactory();

        // create a cache instance
        $cache = $factory::get($cacheConfiguration->getParams());
        $cache->setNamespace(sprintf('dc2_%s_', md5($this->getPersistenceUnitNode()->getName())));

        // return the cache instance
        return $cache;
    }
protected function getCacheImpl(CacheConfigurationInterface $cacheConfiguration)
    {

        // load the factory class
        $factory = $cacheConfiguration->getFactory();

        // create a cache instance
        $cache = $factory::get($cacheConfiguration->getParams());
        $cache->setNamespace(sprintf('dc2_%s_', md5($this->getPersistenceUnitNode()->getName())));

        // return the cache instance
        return $cache;
    }
protected function getCacheImpl ( CacheConfigurationInterface $ cacheConfiguration ) { // load the factory class $ factory = $ cacheConfiguration -> getFactory ( ) ; // create a cache instance $ cache = $ factory :: get ( $ cacheConfiguration -> getParams ( ) ) ; $ cache -> setNamespace ( sprintf ( 'dc2_%s_' , md5 ( $ this -> getPersistenceUnitNode ( ) -> getName ( ) ) ) ) ; // return the cache instance return $ cache ; }
Factory method to create a new cache instance from the passed configuration.

@param \AppserverIo\Description\Configuration\CacheConfigurationInterface $cacheConfiguration The cache configuration

@return \Doctrine\Common\Cache\CacheProvider The cache instance
Factory method to create a new cache instance from the passed configuration .