| java.lang.Object org.zkoss.util.MultiCache
MultiCache | public class MultiCache implements Cache,java.io.Serializable,Cloneable(Code) | | A
CacheMap -based cache.
It creates multiple instances of
CacheMap , called
the internal caches, and then distributes the access across them.
Thus, the performance is porportional to the number of internal caches.
Thread safe.
author: tomyeh since: 3.0.0 |
Constructor Summary | |
public | MultiCache() Constructs a multi cache with 16 inital caches. | public | MultiCache(int nCache, int maxSize, int lifetime) Constucts a multi cache with the specified number of internal caches,
the max size and the lifetime. | public | MultiCache(int nCache) Constructs a multi cache with the specified number of internal caches. | public | MultiCache(int nCache, int initSize) Constructs a multi cache with the specified number of internal caches
and the initialize size. |
MultiCache | public MultiCache()(Code) | | Constructs a multi cache with 16 inital caches.
|
MultiCache | public MultiCache(int nCache, int maxSize, int lifetime)(Code) | | Constucts a multi cache with the specified number of internal caches,
the max size and the lifetime.
Parameters: nCache - the postive number of the internal caches.The large the number the fast the performance. |
MultiCache | public MultiCache(int nCache)(Code) | | Constructs a multi cache with the specified number of internal caches.
Parameters: nCache - the postive number of the internal caches.The large the number the fast the performance. |
MultiCache | public MultiCache(int nCache, int initSize)(Code) | | Constructs a multi cache with the specified number of internal caches
and the initialize size.
Parameters: nCache - the postive number of the internal caches.The large the number the fast the performance. Parameters: initSize - the initialize size |
clear | public void clear()(Code) | | |
getLifetime | public int getLifetime()(Code) | | |
getMaxSize | public int getMaxSize()(Code) | | |
setLifetime | public void setLifetime(int lifetime)(Code) | | |
setMaxSize | public void setMaxSize(int maxsize)(Code) | | |
|
|