Redis 组件管道静态方法(pipeline)未定义

mincon

问题描述

redis 管道 静态方法为定义
原文档已经定义说明
https://www.workerman.net/doc/webman/db/redis.html#%E7%AE%A1%E9%81%93%E5%91%BD%E4%BB%A4

程序代码或配置

Redis::pipeline(function ($pipe) {
    for ($i = 0; $i < 1000; $i++) {
        $pipe->set("key:$i", $i);
    }
});

重现问题的步骤

Redis::pipeline(function ($pipe) {
for ($i = 0; $i < 1000; $i++) {
$pipe->set("key:$i", $i);
}
});

操作系统环境及workerman/webman等具体版本

"require": {
"php": ">=8.2",
"workerman/webman-framework": "~2.2",
"monolog/monolog": "^2.0",
"webman/validation": "^2.2",
"webman/console": "^2.2",
"topthink/think-template": "^3.0",
"php-di/php-di": "^7.0",
"webman/database": "^2.1",
"illuminate/pagination": "^12.53",
"illuminate/events": "^12.55",
"symfony/var-dumper": "^7.4",
"webman/redis": "^2.1",
"vlucas/phpdotenv": "^5.6",
"webman/limiter": "^2.2",
"webman/redis-queue": "^2.1",
"symfony/mailer": "^7.4",
"league/oauth2-github": "^3.1",
"league/oauth2-google": "^4.1",
"pragmarx/google2fa": "^9.0",
"endroid/qr-code": "^6.0",
"ramsey/uuid": "^4.9",
"petalbranch/icon-captcha": "^1.3",
"webman/captcha": "^1.0",
"gregwar/captcha": "^1.3",
"dapphp/securimage": "^4.0",
"workerman/crontab": "^1.0",
"ext-bcmath": ">=7.4",
"ipinfo/ipinfo": "^3.4",
"jenssegers/agent": "^2.6",
"workerman/workerman": "~5.1"

86 1 0
1个回答

walkor 打赏

具体错误和调用栈发出来

  • mincon 2026-03-25

    搞错了,是idea提示未定义,单实际跑起来能用😂

🔝