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
           
 
构造方法摘要
UtilCache()
           
 
方法摘要
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)