NAME

Message::Passing::Input::Redis - A Redis consumer for Message::Passing

SYNOPSIS

$ message-pass --output STDOUT --input Redis --input_options '{"topics":["foo"],"hostname":"127.0.0.1","port":"6379"}'

DESCRIPTION

A simple subscriber a Redis PubSub topic

ATTRIBUTES

hostname

The hostname of the Redis server. Required.

port

The port number of the Redis server. Defaults to 6379.

topics

A list of topics to consume messages from.

These topic names are matched exactly.

ptopics

A list of pattern topics to consume messages from.

These topic names can wildcard match, so for example prefix1.* will match topics prefix1.foo and prefix1.bar.

METHODS

connected

Called by Message::Passing::Redis::ConnectionManager to indicate a connection to the Redis server has been made.

Causes the subscription to the topic(s) to be started

disconnect

Called by Message::Passing::Redis::ConnectionManager to indicate a connection to the Redis server has failed.

SEE ALSO

Message::Passing::Output::Redis
Message::Passing::Redis

AUTHOR, COPYRIGHT AND LICENSE

See Message::Passing::Redis.