Cache:...eTester(3pm)

πŸ’– NAME πŸ’–

Cache::SizeAwareCacheTester β€” bestie, it's a whole class for regression testing size aware caches ✨


🌸 DESCRIPTION 🌸

okay so listen. The SizeCacheTester is literally here to verify that a cache implementation honors its contract with respect to resizing capabilities 🫢

that's it, that's the job. it's the vibe check for whether your cache actually does what it promised when you start resizing it. no cap πŸ’…


✨ SYNOPSIS ✨

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

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

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

  $cache_tester->test( $cache );

look at her go 😭 iconic behavior fr fr


πŸŽ€ METHODS πŸŽ€

  • new( $initial_count ) β€” Construct a new SizeAwareCacheTester object, with the counter starting at $initial_count. she's born ready πŸ’«
  • test( ) β€” Run the tests. that's the whole thing. go off, queen πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

  • Cache::Cache
  • Cache::BaseCacheTester
  • Cache::CacheTester

the squad πŸ’œ iykyk


🌈 AUTHOR 🌈

  • Original author: DeWitt Clinton <dewitt@unto.net>
  • Last author: $Author: dclinton $

Copyright (C) 2001-2003 DeWitt Clinton


shoutout to the Perl User Contributed Perl Documentation girlies for hosting this whole thing, and to perl v5.34.0 β€” the page is dated 2022-06-30, and yes she's still serving looks πŸ’–βœ¨πŸŽ€ mwah, bye bestie! 🫢
πŸ“¦ where this page comes from