public function MemcacheMock::addServer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php \Symfony\Component\HttpKernel\Tests\Profiler\Mock\MemcacheMock::addServer()
Add a memcached server to connection pool.
Parameters
string $host:
int $port:
bool $persistent:
int $weight:
int $timeout:
int $retry_interval:
bool $status:
callable $failure_callback: ms
Return value
bool
File
- vendor/
symfony/ http-kernel/ Tests/ Profiler/ Mock/ MemcacheMock.php, line 79
Class
- MemcacheMock
- MemcacheMock for simulating Memcache extension in tests.
Namespace
Symfony\Component\HttpKernel\Tests\Profiler\MockCode
public function addServer($host, $port = 11211, $persistent = null, $weight = null, $timeout = null, $retry_interval = null, $status = null, $failure_callback = null, $timeoutms = null) {
if ('127.0.0.1' == $host && 11211 == $port) {
$this->connected = true;
return true;
}
return false;
}