AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\CacheFactories\MemcacheCacheFactory::get PHP Method

get() public static method

Return's the new cache instance.
public static get ( array $configuration = [] ) : CacheProvider
$configuration array The cache configuration
return Doctrine\Common\Cache\CacheProvider The cache instance
    public static function get(array $configuration = array())
    {
        if (extension_loaded('memcache')) {
            $memcache = new \Memcache();
            $memcache->connect($configuration[CacheKeys::HOST]);
            $cache = new MemcacheCache();
            $cache->setMemcache($memcache);
            return $cache;
        }
    }
MemcacheCacheFactory