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

Cache::Ref::GCLOCK - GCLOCK cache replacement algorithm

Attributes

       size
           The size of the live entries.

Author

       Yuval Kogman

Description

       This algorithm is related to Cache::Ref::CLOCK but instead of starting all cache hits from "k", a counter
       is increased on every hit.

       This provides behavior which models an LFU expiry policy (without taking into account the full keyspace).

Name

       Cache::Ref::GCLOCK - GCLOCK cache replacement algorithm

Synopsis

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

See Also