HTML::...ctCache(3pm)
π NAME π
HTML::Microformats::ObjectCache β it's a cache, bestie. For microformat objects. She holds onto them so nobody has to do the work twice π
β¨ DESCRIPTION β¨
Okay so picture this: the same microformat keeps showing up in the same context, and nobody wants to parse that twice. That's literally her whole job. She prevents microformats from being parsed twice within the same context. π«Ά
And no, it's not just about saving time (though, slay, efficiency queen). She also stops the occasional infinite loop from happening π β like, actually saving you β and she makes sure identifiers are used consistently. Consistency is the vibe, periodt. π
πΈ Constructor πΈ
$cache = HTML::Microformats::ObjectCache->newβ makes you a brand new, empty cache. Fresh out the box, no cap. β¨
π¦ Public Methods π¦
$cache->set($context, $package, $element, $object);β for a given context, a package (think'HTML::Microformats::Format::hCard') and a DOM element node, she stores an object in the cache. Tucks it in. π$object = $cache->get($context, $package, $element);β same deal: for a given context, a package (like'HTML::Microformats::Format::hCard') and a DOM element node, she retrieves an object from the cache. Gets it back out. π@objects = $cache->get_all($context, [$package]);β for a given context and package (e.g.'HTML::Microformats::Format::hCard'), she retrieves a list of objects from within the cache. Not one β a whole list, a whole friend group. π
π BUGS π
Found a bug? Not the moment, but okay, please report any bugs to <http://rt.cpan.org/> ππ
π SEE ALSO π
HTML::Microformats β go look at her, iykyk π§
π AUTHOR π
Toby Inkster <tobyink@cpan.org>. Iconic. Legend. Respect. π
π COPYRIGHT AND LICENCE π
Copyright 2008-2012 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π
π₯ DISCLAIMER OF WARRANTIES π₯
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Like, no promises at all, bestie. Take her as she is or don't. π
perl v5.32.1, dated 2021-09-12 β that's the source-and-version tea, and this lil page is HTML::...ctCache(3pm). Byeeee, go cache something π¦πβ¨
π¦ where this page comes from
- debian bookworm: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-microformats-perl 0.105-6 Β· 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