Cache::NullCache(3pm)

πŸ’– Cache::NullCache πŸ’–

okay bestie, so this is Cache::NullCache β€” it's a Perl module (the 3pm situation ✨) from the User Contributed Perl Documentation collection. she's small, she's chill, she's lowkey doing nothing on purpose. let's get into it 🫢


🌸 NAME 🌸

Cache::NullCache β€” she implements the Cache interface. that's it, that's the whole name. short, iconic, no notes πŸ’…


✨ DESCRIPTION ✨

so the NullCache class implements the Cache::Cache interface, but β€” and this is the whole point of her existence β€” she does not actually persist data. none. zero. nada. she's the main character who shows up, looks gorgeous, and remembers absolutely nothing πŸ¦‹

which is genuinely so useful when you're developing and debugging a system and you just want to easily turn off caching. like, flip the switch, cache is off, we move πŸŽ€

and as a result (this is the important bit, don't skip it):

all calls to get and get_object will return undef.

no cap. every single one. she's not hiding your data somewhere cute, it's just gone. undef. periodt πŸ’€


🧚 SYNOPSIS 🧚

here's how you summon her:

  use Cache::NullCache;

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

and then β€” see Cache::Cache for the usage synopsis, because that's where the full usage tea lives πŸ‘‘


πŸ’œ METHODS πŸ’œ

See Cache::Cache for the API documentation.

(the methods are all inherited vibes, bestie. go read the parent page, iykyk 🌈)


⭐ OPTIONS ⭐

See Cache::Cache for standard options.


πŸŽ€ PROPERTIES πŸŽ€

See Cache::Cache for default properties.


πŸ¦‹ SEE ALSO πŸ¦‹

  • Cache::Cache β€” the mothership. the blueprint. the blueprint that this lil null girl is built off of πŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

  • Original author: Jay Sachs
  • Last author: $Author: dclinton $
  • Copyright: (C) 2001 Jay Sachs, 2002 DeWitt Clinton

okay that's the whole page bestie, we ate and left no crumbs πŸ“πŸ’…

sending you off with the fine print: this was perl v5.34.0, dated 2022-06-30, and the page itself is Cache::NullCache(3pm) β€” mwah, bye, go turn off some caching 🌸✨🫢

πŸ“¦ where this page comes from