Cache::Ref::GCLOCK(3pm)

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.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

Author

Yuval Kogman

From libcache-ref-perl 0.04-1.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.