com.easyjf.cache
Interface ICache
- All Superinterfaces:
- java.lang.Cloneable
- All Known Implementing Classes:
- EasyCache
- public interface ICache
- extends java.lang.Cloneable
get
public java.lang.Object get(java.lang.Object key)
throws CacheException
- Throws:
CacheException
put
public void put(java.lang.Object key,
java.lang.Object value)
throws CacheException
- Throws:
CacheException
remove
public void remove(java.lang.Object key)
throws CacheException
- Throws:
CacheException
removeElement
public void removeElement(java.lang.Object value)
clear
public void clear()
throws CacheException
- Throws:
CacheException
destroy
public void destroy()
throws CacheException
- Throws:
CacheException
lock
public void lock(java.lang.Object key)
throws CacheException
- Throws:
CacheException
unlock
public void unlock(java.lang.Object key)
throws CacheException
- Throws:
CacheException
getSize
public long getSize()
isExpired
public boolean isExpired(Element e)
getElementCount
public int getElementCount()
getMaxElemnetCount
public int getMaxElemnetCount()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
getStorePolicy
public int getStorePolicy()
getKeySet
public java.util.Set getKeySet()