blib/lib/CHI/Driver/MemcachedFast.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 1 | 3 | 33.3 |
branch | n/a | ||
condition | n/a | ||
subroutine | 1 | 1 | 100.0 |
pod | n/a | ||
total | 2 | 4 | 50.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package CHI::Driver::MemcachedFast; | ||||||
2 | 1 | 1 | 34017 | use Moose; | |||
0 | |||||||
0 | |||||||
3 | use Cache::Memcached::Fast; | ||||||
4 | our $VERSION = '0.02'; | ||||||
5 | |||||||
6 | extends 'CHI::Driver::Memcached'; | ||||||
7 | |||||||
8 | override '_build_contained_cache' => sub { | ||||||
9 | my ($self) = @_; | ||||||
10 | return Cache::Memcached::Fast->new( $self->{mc_params} ); | ||||||
11 | }; | ||||||
12 | |||||||
13 | __PACKAGE__->meta->make_immutable(); | ||||||
14 | no Moose; | ||||||
15 | |||||||
16 | 1; | ||||||
17 | |||||||
18 | __END__ |