#161 Using Redis to queue?

Cerrada
aberta %!s(int64=4) %!d(string=hai) anos por murgero · 2 comentarios

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?

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).

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.
Accede para unirte á conversa.
Sen fito
Sen asignado
2 participantes
Cargando...
Cancelar
Gardar
Aínda non existe contido.