Cache::Ref::LRU - Least recently used expiry policy
my $c = Cache::Ref::LRU->new( size => $n, );
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.
The size of the live entries.
The class of the LRU list implementation.
Yuval Kogman
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.
To install Cache::Ref, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache::Ref
CPAN shell
perl -MCPAN -e shell install Cache::Ref
For more information on module installation, please visit the detailed CPAN module installation guide.