public interface Cache
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
Clear the cache
|
void |
destroy()
Clean up
|
void |
evict(List keys)
Batch remove cache objects
|
void |
evict(Object key) |
Object |
get(Object key)
Get an item from the cache, nontransactionally
|
List |
keys() |
void |
put(Object key,
Object value)
Add an item to the cache, nontransactionally, with
failfast semantics
|
void |
update(Object key,
Object value)
Add an item to the cache
|
Object get(Object key) throws CacheException
key - cache keyCacheExceptionvoid put(Object key, Object value) throws CacheException
key - cache keyvalue - cache valueCacheExceptionvoid update(Object key, Object value) throws CacheException
key - cache keyvalue - cache valueCacheExceptionList keys() throws CacheException
CacheExceptionvoid evict(Object key) throws CacheException
key - Cache key
Remove an item from the cacheCacheExceptionvoid evict(List keys) throws CacheException
keys - the cache keys to be evictedCacheExceptionvoid clear()
throws CacheException
CacheExceptionvoid destroy()
throws CacheException
CacheExceptionCopyright © 2015. All rights reserved.