国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

使用webman2 安裝了redis, support目錄沒有 Redis.php這個文件

ccbu7758520

問題描述

根據(jù)http://wtbis.cn/doc/webman/db/redis.html 安裝redis.
composer require -W webman/redis illuminate/events
安裝完成后,發(fā)現(xiàn)
support目錄沒有 Redis.php這個文件 。

導(dǎo)致 use support\Redis; 會報錯。怎么搞。

程序代碼

<?php
namespace app\index\controller;
use support\Request;
use support\Redis;
class Test
{
    public function index(Request $request)
    {
        $key = 'test_key';
        Redis::set($key, rand());
        return response(Redis::get($key));
    }

}

報錯信息

Error: Class "support\Redis" not found in

操作系統(tǒng)及workerman/webman等框架組件具體版本

webman2

95 2 0
2個回答

北月妖王
  • ccbu7758520 5天前

    牛,可以用了,我翻了github好久,都沒找到這個文件。

efnic

有bug 多看文檔,http://wtbis.cn/doc/webman/db/redis.html

簡單講就是:webman 2版本,需要安裝一個 包

composer require -W webman/redis illuminate/events

  • 暫無評論
??