5 use Data::Dump qw(dump);
8 AnyEvent::Redis->new( host => $ENV{REDIS_HOST}, port => $ENV{REDIS_PORT}, on_error => sub { confess @_ } );
12 my ( $channel, $body ) = @_;
13 $channel = join(' ', @$channel) if ref $channel eq 'ARRAY';
15 $pub->publish( $channel, $body );
16 warn ">>>> ",dump($channel, $body);