protected function newDoctrineCacheImpl($namespace)
    {
        $config  = $this->get('config');
        $factory = $config->get('psx_cache_factory');

        if ($factory instanceof \Closure) {
            return $factory($config, $namespace);
        } else {
            return new DoctrineCache\FilesystemCache($this->get('config')->get('psx_path_cache') . '/' . $namespace);
        }
    }
protected function newDoctrineCacheImpl($namespace)
    {
        $config  = $this->get('config');
        $factory = $config->get('psx_cache_factory');

        if ($factory instanceof \Closure) {
            return $factory($config, $namespace);
        } else {
            return new DoctrineCache\FilesystemCache($this->get('config')->get('psx_path_cache') . '/' . $namespace);
        }
    }
protected function newDoctrineCacheImpl ( $ namespace ) { $ config = $ this -> get ( 'config' ) ; $ factory = $ config -> get ( 'psx_cache_factory' ) ; if ( $ factory instanceof \ Closure ) { return $ factory ( $ config , $ namespace ) ; } else { return new DoctrineCache \ FilesystemCache ( $ this -> get ( 'config' ) -> get ( 'psx_path_cache' ) . '/' . $ namespace ) ; } }
Returns the default doctrine cache

@param string $namespace
@return \Doctrine\Common\Cache\Cache
Returns the default doctrine cache