Atrauzzi\LaravelDoctrine\CacheProvider\CouchbaseProvider::initialize PHP Method

initialize() protected method

Sets up and returns the CacheProvider
protected initialize ( $config ) : CacheProvider
$config
return Doctrine\Common\Cache\CacheProvider
    protected function initialize($config)
    {
        $couchbase = new \Couchbase($config['hosts'], $config['user'], $config['password'], $config['bucket'], $config['persistent']);
        $cache = new CouchbaseCache();
        $cache->setCouchbase($couchbase);
        return $cache;
    }
CouchbaseProvider