blib/lib/Cache/FastMemoryBackend.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 15 | 16 | 93.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Cache::FastMemoryBackend; | ||||||
2 | |||||||
3 | 1 | 1 | 5 | use strict; | |||
1 | 3 | ||||||
1 | 35 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 34 | ||||||
5 | 1 | 1 | 5 | use base qw(Cache::MemoryBackend); | |||
1 | 2 | ||||||
1 | 738 | ||||||
6 | |||||||
7 | sub restore | ||||||
8 | { | ||||||
9 | 2 | 2 | 0 | 281 | my ( $self, $p_namespace, $p_key ) = @_; | ||
10 | |||||||
11 | 2 | 7 | return $self->_get_store_ref( )->{ $p_namespace }{ $p_key }; | ||||
12 | } | ||||||
13 | |||||||
14 | 1; | ||||||
15 | |||||||
16 | __END__ |