org.lexevs.cache
Class CacheRegistry.EhCacheWrapper<K extends java.io.Serializable,V>

java.lang.Object
  extended by org.lexevs.cache.CacheRegistry.EhCacheWrapper<K,V>
All Implemented Interfaces:
CacheRegistry.CacheWrapper<K,V>
Enclosing class:
CacheRegistry

public class CacheRegistry.EhCacheWrapper<K extends java.io.Serializable,V>
extends java.lang.Object
implements CacheRegistry.CacheWrapper<K,V>


Constructor Summary
CacheRegistry.EhCacheWrapper(java.lang.String cacheName, net.sf.ehcache.CacheManager cacheManager)
           
 
Method Summary
 void clear()
           
 V get(K key)
           
 net.sf.ehcache.Ehcache getCache()
           
 void put(K key, V value)
           
 int size()
           
 java.util.List<V> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheRegistry.EhCacheWrapper

public CacheRegistry.EhCacheWrapper(java.lang.String cacheName,
                                    net.sf.ehcache.CacheManager cacheManager)
Method Detail

put

public void put(K key,
                V value)
Specified by:
put in interface CacheRegistry.CacheWrapper<K extends java.io.Serializable,V>

get

public V get(K key)
Specified by:
get in interface CacheRegistry.CacheWrapper<K extends java.io.Serializable,V>

size

public int size()
Specified by:
size in interface CacheRegistry.CacheWrapper<K extends java.io.Serializable,V>

clear

public void clear()
Specified by:
clear in interface CacheRegistry.CacheWrapper<K extends java.io.Serializable,V>

values

public java.util.List<V> values()
Specified by:
values in interface CacheRegistry.CacheWrapper<K extends java.io.Serializable,V>

getCache

public net.sf.ehcache.Ehcache getCache()

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.