代码是我目前的配置,已经开启memcached 服务,测试了多次不行 按照百度的文档操作
你这个用redis不香吗?
class Redis extends \Redis
{
public function __construct()
{
$host = config('redis.host');
$password = config('redis.password');
$this->connect($host);
$this->setOption(parent::OPT_READ_TIMEOUT,-1);
if($password){
$this->auth($password);
}
}
public function auth($password)
{
parent::auth($password); // TODO: Change the autogenerated stub
}
}