platypush/plugins/redis/__init__.py
def send_message(self, queue, msg, *args, **kwargs):
        """
        Send a message to a Redis queue.

        :param queue: Queue name
        :type queue: str

        :param msg: Message to be sent
        :type msg: str, bytes, list, dict, Message object

        :param args: Args passed to the Redis constructor (see https://redis-py.readthedocs.io/en/latest/#redis.Redis)
        :type args: list

        :param kwargs: Kwargs passed to the Redis constructor (see
            https://redis-py.readthedocs.io/en/latest/#redis.Redis)
        :type kwargs: dict
        """

        if args or kwargs:
            redis = Redis(*args, **kwargs)
        else:
            redis = self._get_redis()

        return redis.rpush(queue, str(msg))

        Send a message to a Redis queue.

        :param queue: Queue name
        :type queue: str

        :param msg: Message to be sent
        :type msg: str, bytes, list, dict, Message object

        :param args: Args passed to the Redis constructor (see https://redis-py.readthedocs.io/en/latest/#redis.Redis)
        :type args: list

        :param kwargs: Kwargs passed to the Redis constructor (see
            https://redis-py.readthedocs.io/en/latest/#redis.Redis)
        :type kwargs: dict
        
Send a message to a Redis queue.
Send a message to a Redis queue .
def send_message(self, queue, msg, *args, **kwargs):
        if args or kwargs:
            redis = Redis(*args, **kwargs)
        else:
            redis = self._get_redis()
        return redis.rpush(queue, str(msg))
def send_message ( self , queue , msg , * args , ** kwargs ) : if args or kwargs : redis = Redis ( * args , ** kwargs ) else : redis = self . _get_redis ( ) return redis . rpush ( queue , str ( msg ) )
Send a message to a Redis queue.
Send a message to a Redis queue .
"""
        Send a message to a Redis queue.

        :param queue: Queue name
        :type queue: str

        :param msg: Message to be sent
        :type msg: str, bytes, list, dict, Message object

        :param args: Args passed to the Redis constructor (see https://redis-py.readthedocs.io/en/latest/#redis.Redis)
        :type args: list

        :param kwargs: Kwargs passed to the Redis constructor (see
            https://redis-py.readthedocs.io/en/latest/#redis.Redis)
        :type kwargs: dict
        """
self
queue
None
msg
Message to be sent
Message to be sent
args
Args passed to the Redis constructor
Args passed to the Redis constructor
kwargs
None