mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 15:09:30 +01:00
fix Travis error for HHVM
This commit is contained in:
parent
3909c2fdf0
commit
237b8eceeb
@ -92,10 +92,14 @@ class Memcached extends Base implements ProviderMultiple
|
|||||||
\Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
|
\Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
|
||||||
// automatic failover and disabling of failed nodes
|
// automatic failover and disabling of failed nodes
|
||||||
\Memcached::OPT_SERVER_FAILURE_LIMIT => 2,
|
\Memcached::OPT_SERVER_FAILURE_LIMIT => 2,
|
||||||
\Memcached::OPT_AUTO_EJECT_HOSTS => true,
|
|
||||||
// setting a prefix for all keys
|
// setting a prefix for all keys
|
||||||
\Memcached::OPT_PREFIX_KEY => $prefix,
|
\Memcached::OPT_PREFIX_KEY => $prefix,
|
||||||
));
|
));
|
||||||
|
// automatic disabling of failed nodes
|
||||||
|
if (@constant('Memcached::OPT_AUTO_EJECT_HOSTS'))
|
||||||
|
{
|
||||||
|
$this->memcache->setOption(\Memcached::OPT_AUTO_EJECT_HOSTS, true);
|
||||||
|
}
|
||||||
// use igbinary, if available
|
// use igbinary, if available
|
||||||
if (\Memcached::HAVE_IGBINARY)
|
if (\Memcached::HAVE_IGBINARY)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user