public abstract class AbstractCacheFactory<K extends Serializable,V> extends Object implements CacheFactory<K,V>
CacheFactory
implementation containing common functionality
such as cache configuration properties support.Constructor and Description |
---|
AbstractCacheFactory() |
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String cacheName,
String propName,
String defaultValue) |
void |
setProperties(Properties properties)
Provide properties to parameterize cache creation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCache
public void setProperties(Properties properties)
DefaultCacheFactory.createCache(String)
.
For example, for a cache named cache.ticketsCache the property cache.ticketsCache.maxItems
will determine the capacity of the cache.properties
- PropertiesCopyright © 2005–2017 Alfresco Software. All rights reserved.