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 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« CHI/Driver/Metacache.pm ↑ Summary CHI/t/Driver/NonMoose.pm »
1 package CHI::Driver::Base::CacheContainer;
2 1 $CHI::Driver::Base::CacheContainer::VERSION = '0.61';
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 1788 ▶sub fetch {
Subroutine fetch: called CC=1 SCAR=0.0
Pod undocumented
13 1788 my ( $self, $key ) = @_;
14  
15 1788 return scalar( $self->_contained_cache->get($key) );
16 }
17  
18 547 ▶sub store {
Subroutine store: called CC=1 SCAR=0.0
Pod undocumented
19 547 my $self = shift;
20  
21 547 return $self->_contained_cache->set(@_);
22 }
23  
24 131 ▶sub remove {
Subroutine remove: called CC=1 SCAR=0.0
Pod undocumented
25 131 my ( $self, $key ) = @_;
26  
27 131 $self->_contained_cache->remove($key);
28 }
29  
30 108 ▶sub clear {
Subroutine clear: called CC=1 SCAR=0.0
Pod undocumented
31 108 my $self = shift;
32  
33 108 return $self->_contained_cache->clear(@_);
34 }
35  
36 124 ▶sub get_keys {
Subroutine get_keys: called CC=1 SCAR=0.0
Pod undocumented
37 124 my $self = shift;
38  
39 124 return $self->_contained_cache->get_keys(@_);
40 }
41  
42 11 ▶sub get_namespaces {
Subroutine get_namespaces: called CC=1 SCAR=0.0
Pod undocumented
43 11 my $self = shift;
44  
45 11 return $self->_contained_cache->get_namespaces(@_);
46 }
47  
48 1 1;
49  
50 __END__
« CHI/Driver/Metacache.pm ↑ Summary CHI/t/Driver/NonMoose.pm »