#161 Using Redis to queue?

已关闭
murgero4 年之前创建 · 2 条评论
murgero 评论于 4 年之前

How does one enable using redis to queue? In the past I've always used STOMP, but if redis is supported natively now, how is that configured?

How does one enable using redis to queue? In the past I've always used STOMP, but if redis is supported natively now, how is that configured?
aab 评论于 4 年之前

You need to install redis and php-redis (debian). After that, just use the example in the README: addPlugin('RedisQueue', [ 'server' => 'tcp://localhost:6379',

                         'defaultExpiry' => 86400 // 24h
                        ]);

I can't remember now, but i guess you have to restart the queuedaemons afterwards (it doesn't hurt if not needed anyway).

You need to install redis and php-redis (debian). After that, just use the example in the README: addPlugin('RedisQueue', [ 'server' => 'tcp://localhost:6379', 'defaultExpiry' => 86400 // 24h ]); I can't remember now, but i guess you have to restart the queuedaemons afterwards (it doesn't hurt if not needed anyway).
murgero 评论于 4 年之前
发布者

Yeah I figured it was that in the config - redis plugin is pretty new, I don't believe that was in the original code was it?

anyway I believe I got it working now, not exactly sure how to test but the site is responsive (unlike before) and it seems to federate so I wont question it, for now anyway.

Yeah I figured it was that in the config - redis plugin is pretty new, I don't believe that was in the original code was it? anyway I believe I got it working now, not exactly sure how to test but the site is responsive (unlike before) and it seems to federate so I wont question it, for now anyway.
murgero4 年之前 关闭
登录 并参与到对话中。
未选择里程碑
未指派成员
2 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。