Cache::SizeAwareCacheTester - a class for regression testing size aware caches


Cache-Cache documentation  | view source Contained in the Cache-Cache distribution.

Index


NAME

Top

Cache::SizeAwareCacheTester -- a class for regression testing size aware caches

DESCRIPTION

Top

The SizeCacheTester is used to verify that a cache implementation honors its contract with respect to resizing capabilities

SYNOPSIS

Top

  use Cache::SizeAwareMemoryCache;
  use Cache::SizeAwareCacheTester;

  my $cache = new Cache::SizeAwareMemoryCache( );

  my $cache_tester = new Cache::SizeAwareCacheTester( 1 );

  $cache_tester->test( $cache );

METHODS

Top

new( $initial_count )

Construct a new SizeAwareCacheTester object, with the counter starting at $initial_count.

test( )

Run the tests.

SEE ALSO

Top

Cache::Cache, Cache::BaseCacheTester, Cache::CacheTester

AUTHOR

Top

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

Last author: $Author: dclinton $

Copyright (C) 2001-2003 DeWitt Clinton


Cache-Cache documentation  | view source Contained in the Cache-Cache distribution.