com.hs.mail.util
Class EhCacheWrapper<K,V>
java.lang.Object
com.hs.mail.util.EhCacheWrapper<K,V>
- All Implemented Interfaces:
- CacheWrapper<K,V>
public class EhCacheWrapper<K,V>
- extends Object
- implements CacheWrapper<K,V>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EhCacheWrapper
public EhCacheWrapper(net.sf.ehcache.Ehcache cache)
get
public V get(K key)
- Specified by:
get
in interface CacheWrapper<K,V>
put
public void put(K key,
V value)
- Specified by:
put
in interface CacheWrapper<K,V>
remove
public boolean remove(K key)
- Specified by:
remove
in interface CacheWrapper<K,V>
getCache
public net.sf.ehcache.Ehcache getCache()
remove
public int remove(List<K> keys)
- Specified by:
remove
in interface CacheWrapper<K,V>
flush
public static void flush(EhCacheWrapper<?,?> wrapper)
Copyright © 2011. All Rights Reserved.