public interface CacheProvider
| 限定符和类型 | 方法和说明 |
|---|---|
Cache |
buildCache(String regionName,
boolean autoCreate,
CacheExpiredListener listener)
Configure the cache
|
String |
name()
缓存的标识名称
|
void |
start(Properties props)
Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
|
void |
stop()
Callback to perform any necessary cleanup of the underlying cache implementation
during SessionFactory.close().
|
String name()
Cache buildCache(String regionName, boolean autoCreate, CacheExpiredListener listener) throws CacheException
regionName - the name of the cache regionautoCreate - autoCreate settingslistener - listener for expired elementsCacheException - cache exceptionvoid start(Properties props) throws CacheException
props - current configuration settings.CacheExceptionvoid stop()
Copyright © 2015. All rights reserved.