Skip to content

Building A Custom Cache Strategy

thofrey edited this page Apr 1, 2014 · 6 revisions

Table of Contents

  1. Overview
  2. Objective

Overview

Mach-II includes a caching package that allows you to cache data retrieved by listeners and output generated by views. In other words, you can cache the result of one or more listener calls (i.e. notify commands specified in the XML configuration file) and the result of a rendered view (i.e. view-page commands specified in the XML configuration file). If you are unfamiliar with the basics of Mach-II caching, we encourage you to read the Introduction to Caching first.

Objective

MachII provides a number of different caching strategies in the MachII.caching.strategies package. The objective of this document is to describe how to write your own caching strategy. This process is relatively straightforward, and gives you full control of how, and where your MachII cache data is stored.

Clone this wiki locally