Text::...e::File(3pm)
π NAME π
Text::MicroMason::Cache::File β it's a Basic Cache with File-Based Expiration, bestie!! π And yeah, it's from the User Contributed Perl Documentation collection, so you know it's the people's manpage fr fr. π
β¨ DESCRIPTION β¨
okay so picture this: this lil cache class is simple simple. The keys you hand it? They're file pathnames. That's the whole vibe. π¦
And here's the iconic part β it decides a cached value has expired when the corresponding file gets changed. Like, the file moved on, so the cache moves on too. main character energy honestly. π
But ngl, it does NOT do these things, so don't come for it:
- cache size limiting π«
- deep copying of complex values π«
lowkey it's a minimalist. it knows what it is. respect it. π
πΈ Public Methods πΈ
new()
$cache = Text::MicroMason::Cache::File->new();
yeah this just... makes you a cache. the origin story. the birth. π£β¨
get()
$value = $cache->get( $filename );
Retrieves the value associated with this key β or undef if there's literally no value there. no value, no problem, just undef. π«Ά
set()
$cache->set( $filename, $value );
Stores the provided value in association with this key. match made in heaven, value + key, periodt. π
clear()
$cache->clear();
Removes all data from the cache. like a factory reset but make it dramatic. everything gone. poof. ππ¨
π¦ SEE ALSO π¦
- Wanna know what actually uses this cache class? go look at
Text::MicroMason::CompileCache. iykyk. π - There are more cache classes chilling in the
Text::MicroMason::Cache::namespace β or you can go pick other caching modules on CPAN that support the interface described inCache::Cache. options, bestie, we love options. π - For distribution, installation, support, copyright and license info, see
Text::MicroMason::Docs::ReadMe. it's all in there, no cap. π
and that's the whole page bestie!! πβ¨ππ¦πΈπ π«Ά
this was perl v5.36.0, dated 2023-08-10, and the page itself is Text::...e::File(3pm) β slay, go forth and cache responsibly. ππ
π¦ where this page comes from
- debian trixie: libtext-micromason-perl 2.23-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtext-micromason-perl 2.23-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtext-micromason-perl 2.23-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtext-micromason-perl 2.23-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms