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;
}