org.qi4j.cache.ehcache
Class EhCacheImpl<T>
java.lang.Object
org.qi4j.cache.ehcache.EhCacheImpl<T>
- All Implemented Interfaces:
- Cache<T>
public class EhCacheImpl<T>
- extends Object
- implements Cache<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EhCacheImpl
public EhCacheImpl(String cacheId,
net.sf.ehcache.Cache cache,
Class<T> valueType)
get
public T get(String key)
- Specified by:
get
in interface Cache<T>
remove
public T remove(String key)
- Specified by:
remove
in interface Cache<T>
put
public void put(String key,
T value)
- Specified by:
put
in interface Cache<T>
exists
public boolean exists(String key)
- Specified by:
exists
in interface Cache<T>
cacheId
public String cacheId()