org.alfresco.repo.cache
Class EhCacheAdapter
java.lang.Object
org.alfresco.repo.cache.EhCacheAdapter
- All Implemented Interfaces:
- org.alfresco.repo.cache.SimpleCache
public class EhCacheAdapter
- extends java.lang.Object
- implements org.alfresco.repo.cache.SimpleCache
A thin adapter for Ehcache support.
Thread-safety is taken care of by the underlying Ehcache
instance.
- See Also:
org.springframework.cache.ehcache.EhCacheFactoryBean
,
org.springframework.cache.ehcache.EhCacheManagerFactoryBean
Method Summary |
void |
clear()
|
boolean |
contains(java.io.Serializable key)
|
java.lang.Object |
get(java.io.Serializable key)
|
java.util.Collection |
getKeys()
|
void |
put(java.io.Serializable key,
java.lang.Object value)
|
void |
remove(java.io.Serializable key)
|
void |
setCache(net.sf.ehcache.Cache cache)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EhCacheAdapter
public EhCacheAdapter()
setCache
public void setCache(net.sf.ehcache.Cache cache)
- Parameters:
cache
- the backing Ehcache instance
contains
public boolean contains(java.io.Serializable key)
- Specified by:
contains
in interface org.alfresco.repo.cache.SimpleCache
getKeys
public java.util.Collection getKeys()
- Specified by:
getKeys
in interface org.alfresco.repo.cache.SimpleCache
get
public java.lang.Object get(java.io.Serializable key)
- Specified by:
get
in interface org.alfresco.repo.cache.SimpleCache
put
public void put(java.io.Serializable key,
java.lang.Object value)
- Specified by:
put
in interface org.alfresco.repo.cache.SimpleCache
remove
public void remove(java.io.Serializable key)
- Specified by:
remove
in interface org.alfresco.repo.cache.SimpleCache
clear
public void clear()
- Specified by:
clear
in interface org.alfresco.repo.cache.SimpleCache
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.