blib/lib/CGI/Application/Plugin/Cache/File.pm

filter: Statementstmt 77.7% 7 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 83.3% 10 / 12 CC 1 SCAR 0.9
CC
1
Cov
78%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary
1 package CGI::Application::Plugin::Cache::File;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶use Cache::File;
Subroutine BEGIN: called CC=1 SCAR=2.6
7  
8 require Exporter;
9  
10 @ISA = qw(Exporter AutoLoader);
11 @EXPORT = qw(cache_config cache);
12 @EXPORT_OK = qw();
13  
14 $VERSION = '0.4';
15  
16 sub cache {
17 my $self = shift;
18 return ($self->{__CACHE_FILE_OBJ} or die "No Cache::File object available - did you run cache_config()?\n");
19 }
20  
21 sub cache_config {
22 my $self = shift;
23 return ($self->{__CACHE_FILE_OBJ} = Cache::File->new( @_ ) or die "There was a problem creating a Cache::File instance: $!\n");
24 }
25  
26 1;
27  
28 __END__
↑ Summary