public class XmemcachedCacheProvider extends Object implements CacheProvider
| 构造器和说明 |
|---|
XmemcachedCacheProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
Cache |
buildCache(String region,
CacheExpiredListener listener)
Configure the cache
|
Cache |
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 |
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, waitisLevel, removeCachepublic String name()
CacheProvidername 在接口中 CacheProviderpublic void start(Properties props)
CacheProviderstart 在接口中 CacheProviderprops - current configuration settings.public int level()
CacheProviderlevel 在接口中 CacheProviderpublic Cache buildCache(String region, CacheExpiredListener listener)
CacheProviderbuildCache 在接口中 CacheProviderregion - the name of the cache regionlistener - listener for expired elementspublic Cache buildCache(String region, long timeToLiveInSeconds, CacheExpiredListener listener)
CacheProviderbuildCache 在接口中 CacheProviderregion - cache region nametimeToLiveInSeconds - time to live in secondlistener - listener for expired elementspublic Collection<CacheChannel.Region> regions()
CacheProviderregions 在接口中 CacheProviderpublic void stop()
CacheProviderstop 在接口中 CacheProviderCopyright © 2018. All rights reserved.