@Singleton @Configurable public class JdbcCache extends AbstractCache
<resin:JdbcCache name="test" ee:Named="test">
<database>jdbc/cache</database>
</resin:JdbcCache>
Cache.Entry<K,V>, Cache.EntryProcessor<K,V>, Cache.MutableEntry<K,V>
ResinCacheBuilder.Persistence, ResinCacheBuilder.Scope
Constructor and Description |
---|
JdbcCache() |
JdbcCache(javax.sql.DataSource database) |
Modifier and Type | Method and Description |
---|---|
void |
init()
Initialize the cache.
|
void |
setDatabase(javax.sql.DataSource dataSource) |
void |
setTableName(java.lang.String tableName) |
cacheLoader, close, compareAndRemove, compareVersionAndPut, containsKey, createIfAbsent, get, get, getAccessedExpireTimeout, getAccessedExpireTimeoutWindow, getAll, getAll, getAndPut, getAndRemove, getAndReplace, getCacheEntry, getCacheKey, getCacheManager, getConfig, getConfiguration, getDataStore, getExtCacheEntry, getExtCacheEntry, getKeyHash, getKeyHash, getLeaseExpireTimeout, getLiveCacheEntry, getLocalExpireTimeout, getMBean, getMnodeStore, getModifiedExpireTimeout, getName, getStatCacheEntry, getStatistics, getStatus, getValueHash, invokeEntryProcessor, isBackup, isClosed, isDataAvailable, isTriplicate, iterator, load, loadAll, loadData, notifyClear, notifyEvict, notifyLoad, notifyPut, notifyRemove, peek, peekExtCacheEntry, put, put, put, put, putAll, putIfAbsent, putIfNew, registerCacheEntryListener, remove, remove, removeAll, removeAll, replace, replace, saveData, setAccessedExpireTimeout, setAccessedExpireTimeoutMillis, setAccessedExpireTimeoutWindow, setBacking, setCacheLoader, setCacheManager, setCacheReaderWriter, setCacheWriter, setEngine, setExpireTimeout, setIdleTimeout, setLeaseExpireTimeout, setLeaseExpireTimeoutMillis, setLeaseTimeout, setLocalExpireTimeout, setLocalExpireTimeoutMillis, setLocalReadTimeout, setManagerName, setMemorySizeMin, setModifiedExpireTimeout, setModifiedExpireTimeoutMillis, setName, setPersistenceMode, setReadThrough, setReadThroughExpireTimeout, setReadThroughExpireTimeoutMillis, setScopeMode, setSerializer, setWriteThrough, start, stop, toString, unregisterCacheEntryListener, unwrap
public JdbcCache()
public JdbcCache(javax.sql.DataSource database)
public void setDatabase(javax.sql.DataSource dataSource)
public void setTableName(java.lang.String tableName)
@PostConstruct public void init()
AbstractCache
init
in class AbstractCache