ObjectDriver/Driver/Cache/Cache.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
deflate
2.0
inflate
2.0
get_from_cache
2.0
CRAP 2.0
1 # $Id$
2  
3 package Data::ObjectDriver::Driver::Cache::Cache;
4 use strict;
5 use warnings;
6  
7 use base qw( Data::ObjectDriver::Driver::BaseCache );
8  
9 sub deflate {
10 my $driver = shift;
11 my($obj) = @_;
12 $obj->deflate;
13 }
14  
15 sub inflate {
16 my $driver = shift;
17 my($class, $data) = @_;
18 $class->inflate($data);
19 }
20  
21 sub get_from_cache { shift->cache->thaw(@_) }
22 sub add_to_cache { shift->cache->freeze(@_) }
23 sub update_cache { shift->cache->freeze(@_) }
24 sub remove_from_cache { shift->cache->remove(@_) }
25  
26 1;