| 程序包 | 说明 |
|---|---|
| net.oschina.j2cache | |
| net.oschina.j2cache.ehcache | |
| net.oschina.j2cache.redis |
| 限定符和类型 | 方法和说明 |
|---|---|
Cache |
NullCacheProvider.buildCache(String regionName,
boolean autoCreate,
CacheExpiredListener listener) |
Cache |
CacheProvider.buildCache(String regionName,
boolean autoCreate,
CacheExpiredListener listener)
Configure the cache
|
void |
NullCache.clear() |
void |
Cache.clear()
Clear the cache
|
static void |
CacheManager.clear(int level,
String name)
Clear the cache
|
void |
RedisCacheChannel.clear(String region)
Clear the cache
|
void |
JGroupsCacheChannel.clear(String region)
Clear the cache
|
void |
CacheChannel.clear(String region)
Clear the cache
|
void |
NullCache.destroy() |
void |
Cache.destroy()
Clean up
|
void |
NullCache.evict(List keys) |
void |
Cache.evict(List keys)
Batch remove cache objects
|
void |
NullCache.evict(Object key) |
void |
Cache.evict(Object key) |
Object |
NullCache.get(Object key) |
Object |
Cache.get(Object key)
Get an item from the cache, nontransactionally
|
List |
NullCache.keys() |
List |
Cache.keys() |
static List |
CacheManager.keys(int level,
String name)
list cache keys
|
List |
RedisCacheChannel.keys(String region)
Get cache region keys
|
List |
JGroupsCacheChannel.keys(String region)
Get cache region keys
|
List |
CacheChannel.keys(String region)
Get cache region keys
|
void |
NullCache.put(Object key,
Object value) |
void |
Cache.put(Object key,
Object value)
Add an item to the cache, nontransactionally, with
failfast semantics
|
void |
NullCacheProvider.start(Properties props) |
void |
CacheProvider.start(Properties props)
Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
|
void |
NullCache.update(Object key,
Object value) |
void |
Cache.update(Object key,
Object value)
Add an item to the cache
|
| 限定符和类型 | 方法和说明 |
|---|---|
EhCache |
EhCacheProvider.buildCache(String name,
boolean autoCreate,
CacheExpiredListener listener)
Builds a Cache.
|
void |
EhCache.clear()
Remove all elements in the cache, but leave the cache
in a useable state.
|
void |
EhCache.destroy()
Remove the cache and make it unuseable.
|
void |
EhCache.evict(List keys) |
void |
EhCache.evict(Object key)
Removes the element which matches the key
If no element matches, nothing is removed and no Exception is thrown.
|
Object |
EhCache.get(Object key)
Gets a value of an element which matches the given key.
|
List |
EhCache.keys() |
void |
EhCache.put(Object key,
Object value)
Puts an object into the cache.
|
void |
EhCacheProvider.start(Properties props)
Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
|
void |
EhCache.update(Object key,
Object value)
Puts an object into the cache.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Cache |
RedisCacheProvider.buildCache(String regionName,
boolean autoCreate,
CacheExpiredListener listener) |
void |
RedisCache.clear() |
void |
RedisCache.destroy() |
void |
RedisCache.evict(List keys) |
void |
RedisCache.evict(Object key) |
Object |
RedisCache.get(Object key) |
List |
RedisCache.keys() |
void |
RedisCache.put(Object key,
Object value) |
void |
RedisCacheProvider.start(Properties props) |
void |
RedisCache.update(Object key,
Object value) |
Copyright © 2015. All rights reserved.