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::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