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::CAR - CLOCK with Adaptive Replacement

Attributes

       size
           The size of the live entries.

           Note  that the cache also remembers this many expired keys, and keeps some metadata about those keys,
           so for memory usage the overhead is probably around double what Cache::Ref::LRU requires.

Author

       Yuval Kogman

Description

       This algorithm is an implementation of http://www.almaden.ibm.com/cs/people/dmodha/clockfast.pdf.

       See also Cache::Ref::CART which is probably more appropriate for random access work loads.

       CAR balances between an MFU like policy and an MRU like policy, automatically tuning itself as the
       workload varies.

Name

       Cache::Ref::CAR - CLOCK with Adaptive Replacement

Pod Errors

       Hey! Theabovedocumenthadsomecodingerrors,whichareexplainedbelow:

       Around line 174:
           alternative  text  'http://www.almaden.ibm.com/cs/people/dmodha/clockfast.pdf' contains non-escaped |
           or /

perl v5.32.0                                       2021-01-07                               Cache::Ref::CAR(3pm)

Synopsis

           my $c = Cache::Ref::CAR->new(
               size => $n,
           );

See Also