MakeMe...skCache(3pm)
π NAME π
Okay bestie, so Class::MakeMethods::Utility::DiskCache β it's an Optional Template feature, fr fr. That's the whole name line, we're keeping it 100. π
(also hi, this is MakeMe...skCache(3pm), from the User Contributed Perl Documentation besties β welcome to the group chat π«Ά)
β¨ SYNOPSIS β¨
Like, literally just this:
use Class::MakeMethods::Utility::DiskCache qw( /my/code/dir );
That's it. That's the vibe. π
π¦ DESCRIPTION π¦
So here's the tea β β if you wanna turn on disk caching for the code that Class::MakeMethods::Template generates, you gotta do one thing first: create an empty directory and then hand that directory over to the DiskCache package, like so:
use Class::MakeMethods::Utility::DiskCache qw( /my/code/dir );
Now, does this make everything faster? Honestly? It's giving mixed effect on performance π β the speed situation is complicated, ngl, we're not gonna pretend otherwise.
But bestie, the notable advantage is so worth it: you can actually view the subroutines that your templates are out here generating. Like, you get to see them. With your own eyes. Iconic behavior, truly. πβ¨
π SEE ALSO π
Wanna know more? Go peep Class::MakeMethods::Template β that's where all the extra info lives. iykyk π
okay that's the whole page, you ate that π
mwah π β this lil doc drop is brought to you by perl v5.36.0 and dated 2022-10-13 β slay, go write some templates bestie π§π
π¦ where this page comes from
- ubuntu noble: libclass-makemethods-perl 1.01-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libclass-makemethods-perl 1.01-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libclass-makemethods-perl 1.01-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms