public class CacheManagerImpl
extends java.lang.Object
implements java.io.Closeable
cache.put(key, value)
. To get the entry, call
cache.get(key)
.
The cache configuration affects the lifetime, local caching timeouts
and consistency.Constructor and Description |
---|
CacheManagerImpl(DistCacheSystem cacheSystem,
java.lang.String name,
java.lang.String guid,
java.lang.ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CacheImpl |
createIfAbsent(java.lang.String name,
CacheConfig config) |
CacheImpl |
getCache(java.lang.String name) |
java.lang.String |
getGuid() |
java.lang.String |
getName() |
void |
remove(java.lang.String name) |
public CacheManagerImpl(DistCacheSystem cacheSystem, java.lang.String name, java.lang.String guid, java.lang.ClassLoader loader)
public java.lang.String getName()
public java.lang.String getGuid()
public CacheImpl getCache(java.lang.String name)
public CacheImpl createIfAbsent(java.lang.String name, CacheConfig config)
public void remove(java.lang.String name)
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable