redis
#
Description#
Plugin to send messages on Redis queues.
See https://redis-py.readthedocs.io/en/latest/connections.html#redis.Redis for supported parameters.
Configuration#
redis:
# No configuration required
Actions#
Module reference#
- class platypush.plugins.redis.RedisPlugin(*args, **kwargs)[source]#
Bases:
Plugin
Plugin to send messages on Redis queues.
See https://redis-py.readthedocs.io/en/latest/connections.html#redis.Redis for supported parameters.
- send_message(queue: str, msg, *args, **kwargs)[source]#
Send a message to a Redis queue.
- Parameters:
queue – Queue name
msg (str, bytes, list, dict,
platypush.message.Message
) – Message to be sentargs – Args passed to the Redis constructor (see https://redis-py.readthedocs.io/en/latest/connections.html#redis.Redis)
kwargs – Kwargs passed to the Redis constructor (see https://redis-py.readthedocs.io/en/latest/connections.html#redis.Redis)