com.caucho.server.distcache
Class CacheManagerImpl
java.lang.Object
com.caucho.server.distcache.CacheManagerImpl
- All Implemented Interfaces:
- java.io.Closeable
public class CacheManagerImpl
- extends java.lang.Object
- implements java.io.Closeable
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheManagerImpl
public CacheManagerImpl(DistCacheSystem cacheSystem,
java.lang.String name,
java.lang.String guid,
java.lang.ClassLoader loader)
createBuilder
public CacheBuilder<?,?> createBuilder(java.lang.String name)
getCache
public CacheImpl getCache(java.lang.String name)
createIfAbsent
public CacheImpl createIfAbsent(java.lang.String name,
CacheConfig config)
remove
public void remove(java.lang.String name)
close
public void close()
- Specified by:
close in interface java.io.Closeable