| 构造器和说明 |
|---|
NullCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
put(Object key,
Object value,
Integer expireInSec)
Add an item to the cache, nontransactionally, with
failfast semantics
|
void |
update(Object key,
Object value)
Add an item to the cache
|
void |
update(Object key,
Object value,
Integer expireInSec)
Add an item to the cache
|
public Object get(Object key) throws CacheException
Cacheget 在接口中 Cachekey - cache keyCacheExceptionpublic void put(Object key, Object value) throws CacheException
Cacheput 在接口中 Cachekey - cache keyvalue - cache valueCacheExceptionpublic void update(Object key, Object value) throws CacheException
Cacheupdate 在接口中 Cachekey - cache keyvalue - cache valueCacheExceptionpublic List keys() throws CacheException
keys 在接口中 CacheCacheExceptionpublic void evict(Object key) throws CacheException
evict 在接口中 Cachekey - Cache key
Remove an item from the cacheCacheExceptionpublic void evict(List keys) throws CacheException
Cacheevict 在接口中 Cachekeys - the cache keys to be evictedCacheExceptionpublic void clear()
throws CacheException
Cacheclear 在接口中 CacheCacheExceptionpublic void destroy()
throws CacheException
Cachedestroy 在接口中 CacheCacheExceptionpublic void put(Object key, Object value, Integer expireInSec) throws CacheException
Cacheput 在接口中 CacheexpireInSec - expire time. (seconds)CacheExceptionpublic void update(Object key, Object value, Integer expireInSec) throws CacheException
Cacheupdate 在接口中 CacheexpireInSec - expire time. (seconds)CacheExceptionCopyright © 2018. All rights reserved.