gpt4 book ai didi

php - 如何在 php resque 中为 redis 定义作业?

转载 作者:可可西里 更新时间:2023-11-01 11:13:56 25 4
gpt4 key购买 nike

我是 redis 的新手,目前我正在为 redis 使用 PHP resque。如何在 php resque 中定义作业?

最佳答案

这在 2012 年 10 月 13 日发布的最新版本的 PHP-resque 中有所改变。根据变更日志,“将作业参数包装在数组中以提高与 ruby​​ resque 的兼容性。”

这意味着如果您已经升级到 PHP-Resque 1.2,您将从 $args[0] 访问作业。

关于php - 如何在 php resque 中为 redis 定义作业?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12855896/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com