public class EhCacheProvider extends Object implements CacheProvider
| 构造器和说明 |
|---|
EhCacheProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
EhCache |
buildCache(String name,
boolean autoCreate,
CacheExpiredListener listener)
Builds a 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().
|
public String name()
CacheProvidername 在接口中 CacheProviderpublic EhCache buildCache(String name, boolean autoCreate, CacheExpiredListener listener) throws CacheException
buildCache 在接口中 CacheProvidername - the name of the cache. Must match a cache configured in ehcache.xmlautoCreate - auto create cache region ?listener - cache listenerCacheException - inter alia, if a cache of the same name already existspublic void start(Properties props) throws CacheException
start 在接口中 CacheProviderprops - current configuration settings.CacheExceptionpublic void stop()
stop 在接口中 CacheProviderCopyright © 2015. All rights reserved.