|
Revision 1448, 1.0 kB
(checked in by jm3, 2 years ago)
|
new spammer blacklist, perl libs, and better splinker hunting tools
|
| Line | |
|---|
| 1 |
=head1 NAME |
|---|
| 2 |
|
|---|
| 3 |
Cache::RemovalStrategy - abstract Removal Strategy interface for a Cache |
|---|
| 4 |
|
|---|
| 5 |
=head1 DESCRIPTION |
|---|
| 6 |
|
|---|
| 7 |
=head1 METHODS |
|---|
| 8 |
|
|---|
| 9 |
=over |
|---|
| 10 |
|
|---|
| 11 |
=cut |
|---|
| 12 |
package Cache::RemovalStrategy; |
|---|
| 13 |
|
|---|
| 14 |
require 5.006; |
|---|
| 15 |
use strict; |
|---|
| 16 |
use warnings; |
|---|
| 17 |
use Carp; |
|---|
| 18 |
|
|---|
| 19 |
our $VERSION = '2.04'; |
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
sub new { |
|---|
| 23 |
my Cache::RemovalStrategy $self = shift; |
|---|
| 24 |
|
|---|
| 25 |
ref $self or croak 'Must use a subclass of Cache::RemovalStrategy'; |
|---|
| 26 |
return $self; |
|---|
| 27 |
} |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
=item $r->remove_size( $cache, $size ) |
|---|
| 31 |
|
|---|
| 32 |
When invoked, removes entries from the cache that total at least $size in |
|---|
| 33 |
size. |
|---|
| 34 |
|
|---|
| 35 |
=cut |
|---|
| 36 |
|
|---|
| 37 |
sub remove_size; |
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
1; |
|---|
| 41 |
__END__ |
|---|
| 42 |
|
|---|
| 43 |
=head1 SEE ALSO |
|---|
| 44 |
|
|---|
| 45 |
Cache |
|---|
| 46 |
|
|---|
| 47 |
=head1 AUTHOR |
|---|
| 48 |
|
|---|
| 49 |
Chris Leishman <chris@leishman.org> |
|---|
| 50 |
Based on work by DeWitt Clinton <dewitt@unto.net> |
|---|
| 51 |
|
|---|
| 52 |
=head1 COPYRIGHT |
|---|
| 53 |
|
|---|
| 54 |
Copyright (C) 2003-2006 Chris Leishman. All Rights Reserved. |
|---|
| 55 |
|
|---|
| 56 |
This module is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, |
|---|
| 57 |
either expressed or implied. This program is free software; you can |
|---|
| 58 |
redistribute or modify it under the same terms as Perl itself. |
|---|
| 59 |
|
|---|
| 60 |
$Id: RemovalStrategy.pm,v 1.4 2006/01/31 15:23:58 caleishm Exp $ |
|---|
| 61 |
|
|---|
| 62 |
=cut |
|---|
| 63 |
|
|---|