Cache::Ref::CART(3pm)

Cache::Ref::CART3pm

Car with temporal filtering

Usage

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

Overview

This algorithm is an extension to Cache::Ref::CAR that has temporal filtering on the upgrading from MRU to MFU pool.

This means that two subsequent accesses to the same key do not automatically make it viable for long term caching, to get upgraded to MFU status a key must be expired but known in the history.

This is probably the most general purpose caching algorithm.

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.

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.