org.xworker.cache
类 UtilCache
java.lang.Object
org.xworker.cache.UtilCache
public class UtilCache
- extends java.lang.Object
- 作者:
- zyx
|
字段摘要 |
(专用软件包) static net.sf.ehcache.CacheManager |
manager
|
(专用软件包) static net.sf.ehcache.event.RegisteredEventListeners |
re
|
|
方法摘要 |
static void |
createManaer()
|
static net.sf.ehcache.Cache |
getCache(java.lang.String name,
boolean useDisk)
|
static net.sf.ehcache.Cache |
getCache(java.lang.String name,
int maxElementsInMemory,
boolean overflowToDisk,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds,
boolean diskPersistent,
long diskExpiryThreadIntervalSecond)
|
static net.sf.ehcache.Cache |
getMemoryCahce(java.lang.String name,
int maxElementsInMemory,
long timeToLiveSeconds,
long timeToIdleSeconds)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
manager
static net.sf.ehcache.CacheManager manager
re
static net.sf.ehcache.event.RegisteredEventListeners re
UtilCache
public UtilCache()
createManaer
public static void createManaer()
getMemoryCahce
public static net.sf.ehcache.Cache getMemoryCahce(java.lang.String name,
int maxElementsInMemory,
long timeToLiveSeconds,
long timeToIdleSeconds)
getCache
public static net.sf.ehcache.Cache getCache(java.lang.String name,
boolean useDisk)
getCache
public static net.sf.ehcache.Cache getCache(java.lang.String name,
int maxElementsInMemory,
boolean overflowToDisk,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds,
boolean diskPersistent,
long diskExpiryThreadIntervalSecond)