File Coverage

blib/lib/AtteanX/Query/Cache.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1 1     1   404 use 5.010001;
  1         2  
2 1     1   4 use strict;
  1         1  
  1         15  
3 1     1   3 use warnings;
  1         5  
  1         47  
4              
5             package AtteanX::Query::Cache;
6              
7             our $AUTHORITY = 'cpan:KJETILK';
8             our $VERSION = '0.001_04';
9 1     1   418 use Moo;
  1         9040  
  1         4  
10              
11             extends 'AtteanX::Endpoint';
12              
13             after 'log_query' => sub {
14             my $self = shift;
15             my $req = shift;
16             my $message = shift;
17             $self->model->publisher->publish('analyze.fullquery', $message);
18             };
19              
20             1;
21              
22             __END__
23              
24             =pod
25              
26             =encoding utf-8
27              
28             =head1 NAME
29              
30             AtteanX::Query::Cache - Experimental prefetching SPARQL query cacher
31              
32             =head1 SYNOPSIS
33              
34             =head1 DESCRIPTION
35              
36             =head1 BUGS
37              
38             Please report any bugs to
39             L<http://rt.cpan.org/Dist/Display.html?Queue=AtteanX-Query-Cache>.
40              
41             =head1 SEE ALSO
42              
43             =head1 AUTHOR
44              
45             Kjetil Kjernsmo E<lt>kjetilk@cpan.orgE<gt>.
46              
47             =head1 COPYRIGHT AND LICENCE
48              
49             This software is copyright (c) 2015, 2016 by Kjetil Kjernsmo.
50              
51             This is free software; you can redistribute it and/or modify it under
52             the same terms as the Perl 5 programming language system itself.
53              
54              
55             =head1 DISCLAIMER OF WARRANTIES
56              
57             THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
58             WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
59             MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
60