Cache::BaseCache -- abstract cache base class
BaseCache provides functionality common to all instances of a cache. It differes from the CacheUtils package insofar as it is designed to be used as superclass for cache implementations.
Cache::BaseCache is to be used as a superclass for cache implementations.
package Cache::MyCache; use vars qw( @ISA ); use Cache::BaseCache; @ISA = qw( Cache::BaseCache ); sub new { my ( $proto, $options_hash_ref ) = @_; my $class = ref( $proto ) || $proto; my $self = $class->SUPER::new( $options_hash_ref ) or croak( "Couldn't run super constructor" ); return $self; } sub get { my ( $self, $identifier ) = @_; #... }
See Cache::Cache
Cache::Cache, Cache::FileCache, Cache::MemoryCache
Original author: DeWitt Clinton <dewitt@unto.net>
Last author: $Author: dclinton $
Copyright (C) 2001 DeWitt Clinton
To install Cache::Cache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache::Cache
CPAN shell
perl -MCPAN -e shell install Cache::Cache
For more information on module installation, please visit the detailed CPAN module installation guide.