NAME

Krang::Cache - a read-only, non-persistent, private, LRU cache


SYNOPSIS

Turn on the cache:

  pkg('Cache')->start();

Do some *read-only* work as usual:

  @stories = Krang::Story::find();
  $publisher->publish_stories(...);
  ...

Turn off the cache:

  pkg('Cache')->stop();


DESCRIPTION

This module implements a read-only, non-persistent, private, LRU cache. Let me break it down for you:

Currently the cache stores Krang::Element, Krang::User and Krang::Group objects, and is used solely during publishing.


INTERFACE