com.caucho.distcache
Class LocalCache

java.lang.Object
  extended by com.caucho.distcache.AbstractCache
      extended by com.caucho.distcache.LocalCache
All Implemented Interfaces:
ByteStreamCache, ObjectCache, ResinCacheBuilder, java.io.Closeable, java.lang.Iterable, Cache, CacheLifecycle

@Singleton
@Configurable
public class LocalCache
extends AbstractCache

Cache which stores consistent copies on the cluster segment. Using the cache is like using java.util.Map. To add a new entry, call cache.put(key, value). To get the entry, call cache.get(key). The cache configuration affects the lifetime, local caching timeouts and consistency.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.cache.Cache
Cache.Entry<K,V>, Cache.EntryProcessor<K,V>, Cache.MutableEntry<K,V>
 
Nested classes/interfaces inherited from interface com.caucho.distcache.ResinCacheBuilder
ResinCacheBuilder.Persistence, ResinCacheBuilder.Scope
 
Constructor Summary
LocalCache()
           
LocalCache(java.lang.String name)
           
 
Method Summary
 
Methods inherited from class com.caucho.distcache.AbstractCache
cacheLoader, close, compareAndPut, compareAndPut, compareAndRemove, containsKey, createIfAbsent, get, get, getAccessedExpireTimeout, getAccessedExpireTimeoutWindow, getAll, getAll, getAndPut, getAndRemove, getAndReplace, getCacheEntry, getCacheKey, getCacheManager, getConfig, getConfiguration, getDataStore, getExact, getExtCacheEntry, getExtCacheEntry, getKeyHash, getKeyHash, getLeaseExpireTimeout, getLocalExpireTimeout, getMBean, getMnodeStore, getModifiedExpireTimeout, getName, getStatCacheEntry, getStatistics, getStatus, getValueHash, init, invokeEntryProcessor, isBackup, isClosed, isDataAvailable, isTriplicate, iterator, load, loadAll, loadData, notifyClear, notifyEvict, notifyLoad, notifyPut, notifyRemove, peek, peekExtCacheEntry, put, put, put, putAll, putIfAbsent, registerCacheEntryListener, remove, remove, removeAll, removeAll, replace, replace, saveData, saveData, setAccessedExpireTimeout, setAccessedExpireTimeoutMillis, setAccessedExpireTimeoutWindow, setCacheLoader, setCacheManager, setEngine, setExpireTimeout, setIdleTimeout, setLeaseExpireTimeout, setLeaseExpireTimeoutMillis, setLeaseTimeout, setLocalExpireTimeout, setLocalExpireTimeoutMillis, setLocalReadTimeout, setManagerName, setModifiedExpireTimeout, setModifiedExpireTimeoutMillis, setName, setPersistenceMode, setScopeMode, setSerializer, start, stop, toString, unregisterCacheEntryListener, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalCache

public LocalCache()

LocalCache

public LocalCache(java.lang.String name)