Cache::Ref::LRU(3pm)

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

✨ 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 🫢


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