The CacheAdaptor class is an abstract class that all caching classes should extend. It implements the Cache interface found at phork/php/cache/interfaces/Cache.interface.php.
In addition to being a straight forward adaptor, each adaptor class has the ability to cache to different tiers. The default tiers are base and presentation.
- The base tier is generally used for caching raw data (arrays, objects, etc.) like that from a model.
- The presentation tier is generally used for caching output (HTML, XML, JSON, etc).
This comes in handy when a site's templates have changed and need to be flushed without flushing any underlying data. In that case the presentation tier can be flushed and the basr tier can be left alone.
All the cache tiers are defined in the cache configuration.