| 构造器和说明 |
|---|
RedisCache(String region) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
static void |
main(String[] args) |
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
|
public RedisCache(String region)
public static void main(String[] args)
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 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 List keys() throws CacheException
keys 在接口中 CacheCacheExceptionpublic void clear()
throws CacheException
Cacheclear 在接口中 CacheCacheExceptionpublic void destroy()
throws CacheException
Cachedestroy 在接口中 CacheCacheExceptionCopyright © 2015. All rights reserved.