调用 redis方法问题

浏览:695 发布日期:2018/05/24 分类:求助交流
        $config = Config::get('cache.');
        $redis = new \think\Cache($config);
        $ret = $redis->exists('name');
        dump($ret);
提示错误:
call_user_func_array() expects parameter 1 to be a valid callback, class 'think\cache\driver\Redis' does not have a method 'exists'

看了下源码,执行逻辑也没有发现问题的,hander也是redis的连接句柄信息的
最佳答案
评论( 相关
后面还有条评论,点击查看>>