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