public class CacheImpl extends Object implements Cache
| Constructor and Description |
|---|
CacheImpl()
Constructor.
|
CacheImpl(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
check(String... keys)
Checks if a given key is in the cache.
|
Object |
get(String... keys)
Retrieves an object from the cache.
|
void |
initialize(String[] cacheLevelConfig)
Initializes the cache.
|
void |
put(Object value,
String... keys)
Adds an object to the cache.
|
void |
remove(String... keys)
Removes a branch or leaf from the cache.
|
void |
removeAll()
Removes all entries from the cache.
|
String |
toString() |
void |
writeLock()
Applies a write lock.
|
void |
writeUnlock()
Releases a write lock.
|
public CacheImpl()
public CacheImpl(String name)
public void initialize(String[] cacheLevelConfig)
Cacheinitialize in interface CachecacheLevelConfig - the level configuration strings from the root to the leafspublic Object get(String... keys)
Cachepublic void put(Object value, String... keys)
Cachepublic void remove(String... keys)
Cachepublic void removeAll()
Cachepublic int check(String... keys)
Cachepublic void writeLock()
Cachepublic void writeUnlock()
CachewriteUnlock in interface CacheCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.