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