laravel-admin-extensions / redis-manager

Redis manager for laravel-admin
http://laravel-admin.org/
MIT License
103 stars 47 forks source link

construct() must be an instance of Predis\ClientInterface, instance of Redis given #25

Open hxsen opened 4 years ago

hxsen commented 4 years ago

报错内容:

TypeError In Keyspace.php line 29 :
  Argument 1 passed to Predis\Collection\Iterator\Keyspace::__construct() must be an instance of Predis\ClientInterface, instance of Redis given, called in G:\WWW\bridge\vendor\laravel-admin-ext\redis-manager\src\RedisManager.php on line 176

使用php的redis插件的redis实例,不兼容吗?一定要使用predis吗?

okami-chen commented 4 years ago

同这个错误

huanBird commented 4 years ago

7.0版本的laravel,也报这个错误!

andyzu commented 4 years ago

同这个错误

jianyestudy commented 3 years ago

解决办法: 修改config/database.php 中的 'redis' => [

'client' => env('REDIS_CLIENT', 'predis'),

// Rest of Redis configuration...

], 要使用 Predis 扩展,需要将环境变量从 phpredis 选项修改为 predis