laravel 5.2 redis 不允许静态调用
控制器代码
Redis::set('user','test');
报错:
Non-static method Redis::set() cannot be called statically, assuming $this from incompatible context
根据文档修改引用的config/app.php中的引用名字
'RedisDB' => Illuminate\Support\Facades\Redis::class,
报错Class 'Predis\Client' not found 这是什么原因?
Redis::set('user','test');
报错:
Non-static method Redis::set() cannot be called statically, assuming $this from incompatible context
根据文档修改引用的config/app.php中的引用名字
'RedisDB' => Illuminate\Support\Facades\Redis::class,
报错Class 'Predis\Client' not found 这是什么原因?
1 个回复
_H
赞同来自: