[0] BadFunctionCallException in Redis.php line 81
不支持: redis
if ('' == $this->options['password']) {
unset($this->options['password']);
}
$this->handler = new \Predis\Client($this->options, $params);
$this->options['prefix'] = '';
} else {
throw new \BadFunctionCallException('not support: redis');
}
}
/**
* 判断缓存
* @access public
* @param string $name 缓存变量名
* @return bool
*/
Call Stack
in Redis.php line 81
at Redis->__construct(['type' => 'redis', 'prefix' => 'hm:', 'expire' => 600, ...])
at ReflectionClass->newInstanceArgs([['type' => 'redis', 'prefix' => 'hm:', 'expire' => 600, ...]]) in Container.php line 439
at Container->invokeClass('\think\cache\driver\...', [['type' => 'redis', 'prefix' => 'hm:', 'expire' => 600, ...]]) in Loader.php line 396
at Loader::factory('redis', '\think\cache\driver\', ['type' => 'redis', 'prefix' => 'hm:', 'expire' => 600, ...]) in Cache.php line 70
at Cache->connect(['type' => 'redis', 'prefix' => 'hm:', 'expire' => 600, ...]) in Cache.php line 92
at Cache->init(['type' => 'redis', 'prefix' => 'hm:', 'expire' => 600, ...]) in Cache.php line 47
at Cache->__construct(['type' => 'redis', 'prefix' => 'hm:', 'expire' => 600, ...]) in Cache.php line 100
at Cache::__make(object(Config))
at ReflectionMethod->invokeArgs(null, [object(Config)]) in Container.php line 431
at Container->invokeClass('think\Cache', []) in Container.php line 284
at Container->make('think\Cache', [], false) in Container.php line 281
at Container->make('cache') in Container.php line 516
at Container->__get('cache') in App.php line 356
at App->containerConfigUpdate('index/') in App.php line 334
at App->init('index/') in Module.php line 61
at Module->init() in Url.php line 25
at Url->init() in App.php line 402
at App->run() in index.php line 18 |