Cache::Ref::CAR(3pm)

Cache::Ref::CAR3pm

Clock with adaptive replacement

Usage

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

Overview

This algorithm is an implementation of http://www.almaden.ibm.com/cs/people/dmodha/clockfast.pdf.

See also Cache::Ref::CART which is probably more appropriate for random access work loads.

CAR balances between an MFU like policy and an MRU like policy, automatically tuning itself as the workload varies.

Attributes

size

The size of the live entries.

Note that the cache also remembers this many expired keys, and keeps some metadata about those keys, so for memory usage the overhead is probably around double what Cache::Ref::LRU requires.

Pod errors

Hey! The above document had some coding errors, which are explained below:

Around line 174:

alternative text 'http://www.almaden.ibm.com/cs/people/dmodha/clockfast.pdf' contains non-escaped | or /

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.