Class AbstractCachedContentStoreService

java.lang.Object
org.craftercms.core.service.impl.AbstractCachedContentStoreService
All Implemented Interfaces:
ContentStoreService
Direct Known Subclasses:
ContentStoreServiceImpl

public abstract class AbstractCachedContentStoreService extends Object implements ContentStoreService
Abstract ContentStoreService 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