com.atlassian.crowd.manager.cache
Class CacheManagerEhcache

java.lang.Object
  extended by com.atlassian.crowd.manager.cache.CacheManagerEhcache
All Implemented Interfaces:
CacheManager

public class CacheManagerEhcache
extends Object
implements CacheManager


Constructor Summary
CacheManagerEhcache(net.sf.ehcache.CacheManager cacheManager)
           
 
Method Summary
 Object get(String cacheName, Serializable key)
           
 List getAllKeys(String cacheName)
           
 void put(String cacheName, Serializable key, Serializable obj)
           
 boolean remove(String cacheName, Serializable key)
           
 void removeAll(String cacheName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheManagerEhcache

public CacheManagerEhcache(net.sf.ehcache.CacheManager cacheManager)
Method Detail

put

public void put(String cacheName,
                Serializable key,
                Serializable obj)
         throws CacheManagerException
Specified by:
put in interface CacheManager
Throws:
CacheManagerException

get

public Object get(String cacheName,
                  Serializable key)
           throws CacheManagerException,
                  NotInCacheException
Specified by:
get in interface CacheManager
Throws:
CacheManagerException
NotInCacheException

remove

public boolean remove(String cacheName,
                      Serializable key)
               throws CacheManagerException
Specified by:
remove in interface CacheManager
Throws:
CacheManagerException

removeAll

public void removeAll(String cacheName)
               throws CacheManagerException
Specified by:
removeAll in interface CacheManager
Throws:
CacheManagerException

getAllKeys

public List getAllKeys(String cacheName)
                throws CacheManagerException
Specified by:
getAllKeys in interface CacheManager
Throws:
CacheManagerException


Copyright © 2016 Atlassian. All Rights Reserved.