com.clickntap.tool.cache
Class EhCache

java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean contains(Serializable key)
           
 Serializable get(Serializable key)
           
 Serializable put(Serializable key, Serializable value)
           
 void remove(Serializable theKey)
           
 void removeAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCache

public EhCache(net.sf.ehcache.CacheManager cacheManager,
               String cacheName)
        throws Exception
Throws:
Exception
Method Detail

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.