forked from leftypol/leftypol
MemcacheCacheDriver.php: fix init again
This commit is contained in:
parent
eed2b2986a
commit
2b30929bc9
1 changed files with 3 additions and 4 deletions
|
|
@ -40,10 +40,9 @@ class MemcachedCacheDriver implements CacheDriver {
|
||||||
if ($this->inner->resetServerList()) {
|
if ($this->inner->resetServerList()) {
|
||||||
throw new \RuntimeException('Unable to reset the memcached server list!');
|
throw new \RuntimeException('Unable to reset the memcached server list!');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ($this->inner->addServer($server_uri, $server_port, $server_weight)) {
|
if ($this->inner->addServer($server_uri, $server_port, $server_weight)) {
|
||||||
throw new \RuntimeException('Unable to add memcached servers!');
|
throw new \RuntimeException('Unable to add memcached servers!');
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue