Cache::Ref::GCLOCK3pm
Gclock cache replacement algorithm
Usage
my $c = Cache::Ref::GCLOCK->new(size => $n,);
Overview
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).
Attributes
- size
-
The size of the live entries.
Copyright and license
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.
Releases
7 releases since Debian 7 (Wheezy); the text changed 1 time.