The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Cache::BaseCache -- abstract cache base class

DESCRIPTION

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.

SYNOPSIS

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 ) = @_;

    #...
  }

PROPERTIES

get_namespace

See Cache::Cache

get_default_expires_in

See Cache::Cache

get_auto_purge

See Cache::Cache

SEE ALSO

Cache::Cache, Cache::FileCache, Cache::MemoryCache

AUTHOR

Original author: DeWitt Clinton <dewitt@unto.net>

Last author: $Author: dclinton $

Copyright (C) 2001 DeWitt Clinton