org.gcube.security.soa3.cache
Class SOA3EhcacheWrapper

java.lang.Object
  extended by org.gcube.security.soa3.cache.SOA3EhcacheWrapper
All Implemented Interfaces:
CacheWrapper<String,String>

public class SOA3EhcacheWrapper
extends Object
implements CacheWrapper<String,String>

Utility class that wraps the cache functionalities for SOA3 Responses

Author:
Ciro Formisano

Method Summary
 void close()
           
 String get(String key)
          
 net.sf.ehcache.Ehcache getCache()
           
static SOA3EhcacheWrapper getInstance()
           
 void put(String key, String value)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SOA3EhcacheWrapper getInstance()
Returns:
an instance of the Cache Wrapper

put

public void put(String key,
                String value)

Specified by:
put in interface CacheWrapper<String,String>

getCache

public net.sf.ehcache.Ehcache getCache()
Returns:
the cache

get

public String get(String key)

Specified by:
get in interface CacheWrapper<String,String>

close

public void close()


Copyright © 2013. All Rights Reserved.