Bruno Vecchi > Cache-Ref > Cache::Ref::GCLOCK

Download:
Cache-Ref-0.04.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.04   Source   Latest Release: Cache-Ref-0.05-TRIAL

NAME ^

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

SYNOPSIS ^

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

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).

ATTRIBUTES ^

size

The size of the live entries.

AUTHOR ^

Yuval Kogman

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.

syntax highlighting: