Cache:...R::Base(3pm)

πŸ“¦
version 0.04 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– 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 $x elements from the cache (hopefully the most useless ones πŸ™ˆ). and the default value for $x is 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. 🫢


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