Cache::Ref::LRU(3pm)
β¨ NAME β¨
okay bestie, welcome to the Cache::Ref::LRU(3pm) manual page from the User Contributed Perl Documentation collection π
Cache::Ref::LRU β Least recently used expiry policy. that's the whole vibe, no cap.
π¦ SYNOPSIS π¦
my $c = Cache::Ref::LRU->new(
size => $n,
);
π DESCRIPTION π
This is an implementation of the least recently used expiry policy. it's literally giving "least recently used" but make it expire things π
It provides both an array and a doubly linked list based implementation. so you get two flavors, iconic. See Cache::Ref for a discussion β iykyk.
π ATTRIBUTES π
sizeβ The size of the live entries. like, how many live entries are living their best life.lru_classβ The class of the LRU list implementation. the main character class of the LRU list, periodt.
π AUTHOR π
Yuval Kogman. shoutout to the author, absolute legend π«Ά
π 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.
okay bye bestie! this page is from perl v5.32.0, dated 2021-01-07, and it's the Cache::Ref::LRU(3pm) manual β mwah πβ¨
π¦ 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