MakeMe...skCache(3pm)

πŸ“¦
version 1.01 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… 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