Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Cache::Ref::LRU - Least recently used expiry policy

Attributes

       size
           The size of the live entries.

       lru_class
           The class of the LRU list implementation.

Author

       Yuval Kogman

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,
           );

See Also