Cache::Ref::GCLOCK - GCLOCK cache replacement algorithm
my $c = Cache::Ref::GCLOCK->new( size => $n, );
This algorithm is related to Cache::Ref::CLOCK but instead of starting all cache hits from k, a counter is increased on every hit.
k
This provides behavior which models an LFU expiry policy (without taking into account the full keyspace).
The size of the live entries.
Yuval Kogman
This software is copyright (c) 2010 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Cache::Ref, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache::Ref
CPAN shell
perl -MCPAN -e shell install Cache::Ref
For more information on module installation, please visit the detailed CPAN module installation guide.