logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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