RedisExceptionin问题

0 [0]RedisExceptioninRedis.php line 63


  1. $this->options = array_merge($this->options, $options);
  2. }
  3. if (extension_loaded('redis')) {
  4. $this->handler = new \Redis;
  5. if ($this->options['persistent']) {
  6. $this->handler->pconnect($this->options['host'], (int) $this->options['port'], (int) $this->options['timeout'], 'persistent_id_' . $this->options['select']);
  7. } else {
  8. $this->handler->connect($this->options['host'], (int) $this->options['port'], (int) $this->options['timeout']);
  9. }
  10. if ('' != $this->options['password']) {
  11. $this->handler->auth($this->options['password']);
  12. }
  13. } elseif (class_exists('\Predis\Client')) {
  14. $params = [];
  15. foreach ($this->options as $key => $val) {
  16. if (in_array($key, ['aggregate', 'cluster', 'connections', 'exceptions', 'prefix', 'profile', 'replication', 'parameters'])) {

应如何处理
thinkphp6

阅读 2.3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进