public class EhCacheProvider3 extends Object implements CacheProvider
| 构造器和说明 |
|---|
EhCacheProvider3() |
| 限定符和类型 | 方法和说明 |
|---|---|
EhCache3 |
buildCache(String region,
CacheExpiredListener listener)
Configure the cache
|
EhCache3 |
buildCache(String region,
long timeToLiveInSeconds,
CacheExpiredListener listener)
Configure the cache with timeToLiveInMills
|
int |
level()
缓存的层级
|
String |
name()
缓存的标识名称
|
Collection<CacheChannel.Region> |
regions()
Return all channels defined in first level cache
|
void |
removeCache(String region)
Remove a cache region
|
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().
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisLevelpublic String name()
CacheProvidername 在接口中 CacheProviderpublic int level()
CacheProviderlevel 在接口中 CacheProviderpublic Collection<CacheChannel.Region> regions()
CacheProviderregions 在接口中 CacheProviderpublic EhCache3 buildCache(String region, CacheExpiredListener listener)
CacheProviderbuildCache 在接口中 CacheProviderregion - the name of the cache regionlistener - listener for expired elementspublic EhCache3 buildCache(String region, long timeToLiveInSeconds, CacheExpiredListener listener)
CacheProviderbuildCache 在接口中 CacheProviderregion - cache region nametimeToLiveInSeconds - time to live in secondlistener - listener for expired elementspublic void removeCache(String region)
CacheProviderremoveCache 在接口中 CacheProviderregion - cache region namepublic void start(Properties props)
CacheProviderstart 在接口中 CacheProviderprops - current configuration settings.public void stop()
CacheProviderstop 在接口中 CacheProviderCopyright © 2018. All rights reserved.