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 togetandget_objectwill returnundef.
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
- debian bookworm: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- debian trixie: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu noble: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu resolute: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu stonking: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms