redis
Platypush documentation
redis
- class platypush.plugins.redis.RedisPlugin(*args, **kwargs)[source]
Bases:
Plugin
Plugin to send messages on Redis queues.
- send_message(queue, msg, *args, **kwargs)[source]
Send a message to a Redis queue.
- Parameters:
queue (str) – Queue name
msg (str, bytes, list, dict, Message object) – Message to be sent
args (list) – Args passed to the Redis constructor (see https://redis-py.readthedocs.io/en/latest/#redis.Redis)
kwargs (dict) – Kwargs passed to the Redis constructor (see https://redis-py.readthedocs.io/en/latest/#redis.Redis)