| 1 | package Cache::Ref::Null; | ||
| 2 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | $Cache::Ref::Null::AUTHORITY = 'cpan:NUFFIN'; | |
| 4 | } | ||
| 5 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | $Cache::Ref::Null::VERSION = '0.05'; # TRIAL | |
| 7 | } | ||
| 8 | # ABSTRACT: Caches nothing | ||
| 9 | |||
| 10 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 1 | extends qw(Cache::Ref); | |
| 15 | |||
| 16 | 1 | with qw(Cache::Ref::Role::API); | |
| 17 | |||
| 18 | 2 | ▶ | sub get { return } |
|
Subroutine
get: called CC=1 SCAR=0.0
Pod
documented
| |||
| 19 | 0 | ▶ | sub hit { return } |
|
Subroutine
hit: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | 1 | ▶ | sub set { return } |
|
Subroutine
set: called CC=1 SCAR=0.0
Pod
documented
| |||
| 21 | 0 | ▶ | sub remove { return } |
|
Subroutine
remove: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 22 | 0 | ▶ | sub clear { return } |
|
Subroutine
clear: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 23 | 0 | ▶ | sub expire { return } |
|
Subroutine
expire: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 24 | 0 | ▶ | sub compute { return } |
|
Subroutine
compute: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | |||
| 26 | 1 | __PACKAGE__->meta->make_immutable; | |
| 27 | |||
| 28 | 1 | __PACKAGE__; | |
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | =pod | ||
| 33 | |||
| 34 | =encoding utf-8 | ||
| 35 | |||
| 36 | =head1 NAME | ||
| 37 | |||
| 38 | Cache::Ref::Null - Caches nothing | ||
| 39 | |||
| 40 | =head1 SYNOPSIS | ||
| 41 | |||
| 42 | # useful for comparing the effect of a cache compared to no | ||
| 43 | # caching without code changes: | ||
| 44 | |||
| 45 | my $c = Cache::Profile::Compare->new( | ||
| 46 | caches => [ | ||
| 47 | Cache::Ref::Foo->new( ... ), | ||
| 48 | Cache::Ref->Null->new, | ||
| 49 | ], | ||
| 50 | ); | ||
| 51 | |||
| 52 | =head1 DESCRIPTION | ||
| 53 | |||
| 54 | This cache implementation will cache nothing. | ||
| 55 | |||
| 56 | This is primarily intended for testing or comparing runtime | ||
| 57 | without a cache against runtime with a cache. | ||
| 58 | |||
| 59 | It's like L<Cache::Null> but supports the additional methods in | ||
| 60 | L<Cache::Ref>. | ||
| 61 | |||
| 62 | =head1 AUTHOR | ||
| 63 | |||
| 64 | Yuval Kogman | ||
| 65 | |||
| 66 | =head1 COPYRIGHT AND LICENSE | ||
| 67 | |||
| 68 | This software is copyright (c) 2011 by Yuval Kogman. | ||
| 69 | |||
| 70 | This is free software; you can redistribute it and/or modify it under | ||
| 71 | the same terms as the Perl 5 programming language system itself. | ||
| 72 | |||
| 73 | =cut | ||
| 74 | |||
| 75 | |||
| 76 | __END__ | ||