com.hs.mail.util
Class EhCacheWrapper<K,V>

java.lang.Object
  extended by com.hs.mail.util.EhCacheWrapper<K,V>
All Implemented Interfaces:
CacheWrapper<K,V>

public class EhCacheWrapper<K,V>
extends Object
implements CacheWrapper<K,V>


Constructor Summary
EhCacheWrapper(net.sf.ehcache.Ehcache cache)
           
 
Method Summary
static void flush(EhCacheWrapper<?,?> wrapper)
           
 V get(K key)
           
 net.sf.ehcache.Ehcache getCache()
           
 void put(K key, V value)
           
 boolean remove(K key)
           
 int remove(List<K> keys)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheWrapper

public EhCacheWrapper(net.sf.ehcache.Ehcache cache)
Method Detail

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.