-
Notifications
You must be signed in to change notification settings - Fork 24
Building A Custom Cache Strategy
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.
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.