CHI/Driver/Base/CacheContainer.pm

filter: Statementstmt 100% 28 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 0.0% 0 / 6 totaltotal 86.3% 38 / 44 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« CHI/Serializer/JSON.pm ↑ Summary CHI/Driver/Metacache.pm »
1 package CHI::Driver::Base::CacheContainer;
2 1 $CHI::Driver::Base::CacheContainer::VERSION = '0.59';
3 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use List::MoreUtils qw( all );
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 extends 'CHI::Driver';
9  
10 1 has '_contained_cache' => ( is => 'ro' );
11  
12 sub fetch {
13 1781 ▶ my ( $self, $key ) = @_;
Subroutine fetch: called CC=1 SCAR=0.0
Pod undocumented
14  
15 1781 return scalar( $self->_contained_cache->get($key) );
16 }
17  
18 sub store {
19 545 ▶ my $self = shift;
Subroutine store: called CC=1 SCAR=0.0
Pod undocumented
20  
21 545 return $self->_contained_cache->set(@_);
22 }
23  
24 sub remove {
25 127 ▶ my ( $self, $key ) = @_;
Subroutine remove: called CC=1 SCAR=0.0
Pod undocumented
26  
27 127 $self->_contained_cache->remove($key);
28 }
29  
30 sub clear {
31 108 ▶ my $self = shift;
Subroutine clear: called CC=1 SCAR=0.0
Pod undocumented
32  
33 108 return $self->_contained_cache->clear(@_);
34 }
35  
36 sub get_keys {
37 122 ▶ my $self = shift;
Subroutine get_keys: called CC=1 SCAR=0.0
Pod undocumented
38  
39 122 return $self->_contained_cache->get_keys(@_);
40 }
41  
42 sub get_namespaces {
43 11 ▶ my $self = shift;
Subroutine get_namespaces: called CC=1 SCAR=0.0
Pod undocumented
44  
45 11 return $self->_contained_cache->get_namespaces(@_);
46 }
47  
48 1 1;
49  
50 __END__
« CHI/Serializer/JSON.pm ↑ Summary CHI/Driver/Metacache.pm »