mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
修正
This commit is contained in:
6
library/think/cache/driver/Memcached.php
vendored
6
library/think/cache/driver/Memcached.php
vendored
@@ -22,8 +22,6 @@ class Memcached
|
|||||||
'expire' => 0,
|
'expire' => 0,
|
||||||
'timeout' => 0, // 超时时间(单位:毫秒)
|
'timeout' => 0, // 超时时间(单位:毫秒)
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'username' => '', //账号
|
|
||||||
'password' => '', //密码
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -56,10 +54,6 @@ class Memcached
|
|||||||
$servers[] = [$host, (isset($ports[$i]) ? $ports[$i] : $ports[0]), 1];
|
$servers[] = [$host, (isset($ports[$i]) ? $ports[$i] : $ports[0]), 1];
|
||||||
}
|
}
|
||||||
$this->handler->addServers($servers);
|
$this->handler->addServers($servers);
|
||||||
if ('' != $this->options['username']) {
|
|
||||||
$this->handler->setOption(\Memcached::OPT_BINARY_PROTOCOL, true);
|
|
||||||
$this->handler->setSaslAuthData($this->options['username'], $this->options['password']);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user