Cache::Ref::LIFO(3pm)

Cache::Ref::LIFO3pm

Saves entries until full, discarding subsequent sets.

Usage

    my $c = Cache::Ref::LIFO->new( size => $n );
    $c->set( foo => 42 );
    $c->get("foo");

Overview

This is a very naive cache algorithm, it saves cache sets until the cache is full, at which point all additional saves which aren't a value update are discarded immediately.

For very predictable workflows this is potentially a good fit, provided the MFU is used early on.

The advantages is that the code is very simple as a result.

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.