Cache:...R::Base(3pm)
π NAME π
okay so bestie, welcome to Cache::Ref::CAR::Base β she's the base clase (yes, "clase", that's the typo and we're keeping her, she's iconic π
) for CAR and CART. Think of her as the mom friend holding down the group chat so the other two can pop off. β¨
πΈ SYNOPSIS πΈ
ngl this page doesn't have her own synopsis, she's a supporting character:
# see CAR or CART
periodt. go look at Cache::Ref::CAR or Cache::Ref::CART for the actual drama. π
π¦ DESCRIPTION π¦
so this role β hi, yes, she's a role, not out here being a whole class by herself β provides all the common functionality for both Cache::Ref::CAR and Cache::Ref::CART. she's the shared lore. the two of them show up looking cute and she's the one who did all the work fr fr. π
π METHODS π
get @keysβ fetch data from the cache. you hand her keys, she hands you the goods. lowkey the main character move. πset $key, $valueβ insert data to the cache. you bring a key and a value, she slots them in. no cap. β¨remove @keysβ remove entries from the cache. heads up bestie: this one is not in the original CAR algorithm description, so she's an extra lil bonus feature, not part of the canon. πexpire $xβ removes$xelements from the cache (hopefully the most useless ones π). and the default value for$xis 1, so if you don't say a number she just does one. cute of her.
and then she left this lil note at the bottom of her methods, we don't ask:
# ex: set sw=4 et:
π AUTHOR π
Yuval Kogman wrote her. we stan. π«Ά
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2010 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole vibe check, bestie! π this lil masterpiece was documented by the User Contributed Perl Documentation crew, running on perl v5.32.0, dated 2021-01-07, and yes β she really does say Cache:...R::Base(3pm) on both ends of the page like a lil signature. slay. bye, go read CAR and CART ππΈπ
π¦ where this page comes from
- debian bookworm: libcache-ref-perl 0.04-1.1
- debian trixie: libcache-ref-perl 0.04-1.1
- ubuntu jammy: libcache-ref-perl 0.04-1.1
- ubuntu noble: libcache-ref-perl 0.04-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms