com.clickntap.tool.cache
Class MemoryCache
java.lang.Object
com.clickntap.tool.cache.MemoryCache
- All Implemented Interfaces:
- Cache
public class MemoryCache
- extends Object
- implements Cache
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryCache
public MemoryCache()
get
public Serializable get(Serializable key)
throws Exception
- Specified by:
get in interface Cache
- Throws:
Exception
put
public Serializable put(Serializable key,
Serializable value)
throws Exception
- Specified by:
put in interface Cache
- Throws:
Exception
remove
public void remove(Serializable key)
throws Exception
- Specified by:
remove in interface Cache
- Throws:
Exception
removeAll
public void removeAll()
throws Exception
- Specified by:
removeAll in interface Cache
- Throws:
Exception
contains
public boolean contains(Serializable key)
throws Exception
- Specified by:
contains in interface Cache
- Throws:
Exception
Copyright © 2014. All rights reserved.