redis
#
- class platypush.backend.redis.RedisBackend(*args, queue='platypush_bus_mq', redis_args=None, **kwargs)[source]#
Bases:
Backend
Backend that reads messages from a configured Redis queue (default:
platypush_bus_mq
) and posts them to the application bus. Very useful when you have plugin whose code is executed in another process and can’t post events or requests to the application bus.- __init__(*args, queue='platypush_bus_mq', redis_args=None, **kwargs)[source]#
- Parameters:
queue (str) – Queue name to listen on (default:
platypush_bus_mq
)redis_args (dict) – Arguments that will be passed to the redis-py constructor (e.g. host, port, password), see https://redis-py.readthedocs.io/en/latest/