Lavender\Cloud\Sina\Cache\MemcacheConnector::connect PHP Method

connect() public method

Create a new Memcache connection.
public connect ( ) : Memcache
return Memcache
    public function connect()
    {
        $memcache = $this->getMemcache();
        // For sina app engine, we don't need to create server manually
        // SAE does it for use after we call mmecache_init()
        if ($memcache->getVersion() === false) {
            throw new RuntimeException("Could not establish Memcached connection.");
        }
        return $memcache;
    }
MemcacheConnector