com.easyjf.cache.store
Class MemoryStore
java.lang.Object
com.easyjf.cache.store.MemoryStore
- All Implemented Interfaces:
- Store
- Direct Known Subclasses:
- FifoMemoryStore, LfuMemoryStore, LruMemoryStore
- public abstract class MemoryStore
- extends java.lang.Object
- implements Store
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static MemoryStore create(ICache cache)
put
public void put(Element element)
- Specified by:
put in interface Store
get
public Element get(java.lang.Object key)
- Specified by:
get in interface Store
getQuiet
public Element getQuiet(java.io.Serializable key)
remove
public Element remove(java.lang.Object key)
- Specified by:
remove in interface Store
removeAll
public void removeAll()
- Specified by:
removeAll in interface Store
dispose
public void dispose()
- Specified by:
dispose in interface Store
getStatus
public int getStatus()
- Specified by:
getStatus in interface Store
getKeyArray
public java.lang.Object[] getKeyArray()
getSize
public int getSize()
- Specified by:
getSize in interface Store
containsKey
public boolean containsKey(java.lang.Object key)
getSizeInBytes
public long getSizeInBytes()
throws CacheException
- Throws:
CacheException
getKeySet
public java.util.Set getKeySet()
- Specified by:
getKeySet in interface Store
removeElement
public boolean removeElement(java.lang.Object value)
throws java.io.IOException
- Specified by:
removeElement in interface Store
- Throws:
java.io.IOException