Cache::Ref::LRU - Least recently used expiry policy
Contents
Attributes
size
The size of the live entries.
lru_class
The class of the LRU list implementation.
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.
perl v5.40.1 2025-08-14 Cache::Ref::LRU(3pm)
Description
This is an implementation of the least recently used expiry policy.
It provides both an array and a doubly linked list based implementation. See Cache::Ref for a discussion.
Name
Cache::Ref::LRU - Least recently used expiry policy
Synopsis
my $c = Cache::Ref::LRU->new(
size => $n,
);
