File Coverage

blib/lib/Message/Passing/Redis.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Message::Passing::Redis;
2 1     1   636 use strict;
  1         2  
  1         30  
3 1     1   5 use warnings;
  1         2  
  1         46  
4 1     1   995 use Redis;
  1         153912  
  1         43  
5 1     1   1465 use namespace::clean -except => 'meta';
  1         56027  
  1         9  
6              
7             our $VERSION = '0.006';
8             $VERSION = eval $VERSION;
9              
10             1;
11              
12             =head1 NAME
13              
14             Message::Passing::Redis - Produce or consume messages by Redis PubSub
15              
16             =head1 SYNOPSIS
17              
18             # Terminal 1:
19             $ message-pass --input STDIN --output Redis --output_options '{"topic":"foo","hostname":"127.0.0.1","port":"6379"}'
20             {"data":{"some":"data"},"@metadata":"value"}
21              
22             # Terminal 2:
23             $ message-pass --output STDOUT --input Redis --input_options '{"topics":["foo"],"hostname":"127.0.0.1","port":"6379"}'
24             {"data":{"some":"data"},"@metadata":"value"}
25              
26             =head1 DESCRIPTION
27              
28             A L transport for L, allowing you to publish
29             messages to, or subscribe to messages from Redis.
30              
31             =head1 SEE ALSO
32              
33             =over
34              
35             =item L
36              
37             =item L
38              
39             =back
40              
41             =head1 AUTHOR
42              
43             Tomas (t0m) Doran
44              
45             =head1 COPYRIGHT
46              
47             Copyright the above named author
48              
49             =head1 LICENSE
50              
51             GNU Affero General Public License, Version 3
52              
53             If you feel this is too restrictive to be able to use this software, please talk to us as we'd be willing to consider re-licensing under less restrictive terms.
54              
55             =cut
56