com.clickntap.tool.cache
Class EhCache
java.lang.Object
com.clickntap.tool.cache.EhCache
- All Implemented Interfaces:
- Cache
public class EhCache
- extends Object
- implements Cache
|
Constructor Summary |
EhCache(net.sf.ehcache.CacheManager cacheManager,
String cacheName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EhCache
public EhCache(net.sf.ehcache.CacheManager cacheManager,
String cacheName)
throws Exception
- Throws:
Exception
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 theKey)
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.