Cache::RemovalStrategy - abstract Removal Strategy interface for a Cache


Cache documentation Contained in the Cache distribution.

Index


Code Index:

NAME

Top

Cache::RemovalStrategy - abstract Removal Strategy interface for a Cache

DESCRIPTION

Top

METHODS

Top

$r->remove_size( $cache, $size )

When invoked, removes entries from the cache that total at least $size in size.

SEE ALSO

Top

Cache

AUTHOR

Top

 Chris Leishman <chris@leishman.org>
 Based on work by DeWitt Clinton <dewitt@unto.net>

COPYRIGHT

Top


Cache documentation Contained in the Cache distribution.
package Cache::RemovalStrategy;

require 5.006;
use strict;
use warnings;
use Carp;

our $VERSION = '2.04';


sub new {
    my Cache::RemovalStrategy $self = shift;

    ref $self or croak 'Must use a subclass of Cache::RemovalStrategy';
    return $self;
}


sub remove_size;


1;
__END__