Perlan...:Cache(3pm)

πŸ“¦
version 2.2.1 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

✨ NAME ✨

Perlanet::Trait::Cache β€” bestie, it caches your feeds with CHI πŸ’…

(also, hi, this is the Perlan...:Cache(3pm) page, a User Contributed Perl Documentation moment, iykyk πŸŽ€)


🌸 SYNOPSIS 🌸

okay so literally all you do is this:

my $perlanet = Perlanet->new_with_traits(
   traits => [ 'Perlanet::Trait::Cache' ]
);

$perlanet->run;

that's it. that's the whole vibe. slay. ✨


πŸ’– DESCRIPTION πŸ’–

so the way that this works is: every single time a page gets fetched, it gets cached first, through CHI. no cap. 🫢

and why do we care? because it means you can cache pages to a local disk, for example, if the feed has not changed. like, if nothing's new, why are we out here re-fetching? we're not. we're chilling. main character energy fr fr. πŸ‘‘


πŸŽ€ ATTRIBUTES πŸŽ€

πŸ¦‹ cache

the Chi cache object. that's the whole description bestie, it's literally just that. πŸ’–


πŸ’œ AUTHOR πŸ’œ

Dave Cross, <dave@perlhacks.com> 🌸


Copyright (c) 2010 by Magnum Solutions Ltd.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available. 🫢✨


okay and that's the whole page, no notes πŸ’…

sign-off time πŸŽ€ β€” this was perl v5.36.0, dated 2023-02-21, and yeah that's the Perlan...:Cache(3pm) footer energy, periodt. πŸ’–β­πŸ§š

πŸ“¦ where this page comes from