Atrauzzi\LaravelDoctrine\CacheProvider\CouchbaseProvider::initialize PHP 메소드

initialize() 보호된 메소드

Sets up and returns the CacheProvider
protected initialize ( $config ) : CacheProvider
$config
리턴 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