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

使用webman2 安裝了redis, support目錄沒(méi)有 Redis.php這個(gè)文件

ccbu7758520

問(wèn)題描述

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

導(dǎo)致 use support\Redis; 會(huì)報(bào)錯(cuò)。怎么搞。

程序代碼

<?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));
    }

}

報(bào)錯(cuò)信息

Error: Class "support\Redis" not found in

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

webman2

122 2 0
2個(gè)回答

北月妖王
  • ccbu7758520 9天前

    牛,可以用了,我翻了github好久,都沒(méi)找到這個(gè)文件。

efnic

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

簡(jiǎn)單講就是:webman 2版本,需要安裝一個(gè) 包

composer require -W webman/redis illuminate/events

  • 暫無(wú)評(píng)論
??