Class AbstractCachedContentStoreAdapter

java.lang.Object
org.craftercms.core.store.impl.AbstractCachedContentStoreAdapter
All Implemented Interfaces:
ContentStoreAdapter
Direct Known Subclasses:
AbstractFileBasedContentStoreAdapter

public abstract class AbstractCachedContentStoreAdapter extends Object implements ContentStoreAdapter
Abstract ContentStoreAdapter that provides caching to actual implementations. Subclasses just have to implement the do* methods to provide the cacheable objects. Caching works the following way: when an interface method is called, and there's no cached object associated to the parameter-based compound key, the do* method of the same name is called to execute the actual method code. The returned object is then cached with the compound key.
Author:
Alfonso Vásquez