Text::MicroMason::Cache::Simple(3pm)

Text::MicroMason::Cache::Simple3pm

Basic cache with minimal interface

Overview

This trivial cache class just stores values in a hash.

It does not perform any of the following functions: expiration, cache size limiting, flatening of complex keys, or deep copying of complex values.

Public Methods

new()
  $cache = Text::MicroMason::Cache::Simple->new();
get()
  $value = $cache->get( $key );

Retrieves the value associated with this key, or undef if there is no value.

set()
  $cache->set( $key, $value );

Stores the provided value in association with this key.

clear()
  $cache->clear();

Removes all data from the cache.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0–7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

From libtext-micromason-perl 2.23-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.