protected function DrupalMemcache::connect in Zircon Profile 8
Same name and namespace in other branches
- 8.0 modules/memcache/src/DrupalMemcache.php \Drupal\memcache\DrupalMemcache::connect()
Connects to a memcache server.
Parameters
string $host:
int $port:
bool $persistent:
Return value
bool|mixed
1 call to DrupalMemcache::connect()
- DrupalMemcache::addServer in modules/
memcache/ src/ DrupalMemcache.php - @
File
- modules/
memcache/ src/ DrupalMemcache.php, line 55 - Contains \Drupal\memcache\DrupalMemcache.
Class
- DrupalMemcache
- Class DrupalMemcache.
Namespace
Drupal\memcacheCode
protected function connect($host, $port, $persistent) {
if ($persistent) {
return @$this->memcache
->pconnect($host, $port);
}
else {
return @$this->memcache
->connect($host, $port);
}
}