org.hippoecm.hst.cache.ehcache
Class HstCacheEhCacheImpl
java.lang.Object
org.hippoecm.hst.cache.ehcache.HstCacheEhCacheImpl
- All Implemented Interfaces:
- HstCache
public class HstCacheEhCacheImpl
- extends Object
- implements HstCache
HstCacheEhCacheImpl
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HstCacheEhCacheImpl
public HstCacheEhCacheImpl(net.sf.ehcache.Ehcache ehcache)
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled)
get
public CacheElement get(Object key)
- Specified by:
get
in interface HstCache
getTimeToIdleSeconds
public int getTimeToIdleSeconds()
- Specified by:
getTimeToIdleSeconds
in interface HstCache
getTimeToLiveSeconds
public int getTimeToLiveSeconds()
- Specified by:
getTimeToLiveSeconds
in interface HstCache
isKeyInCache
public boolean isKeyInCache(Object key)
- Specified by:
isKeyInCache
in interface HstCache
put
public void put(CacheElement element)
- Specified by:
put
in interface HstCache
createElement
public CacheElement createElement(Object key,
Object content)
- Specified by:
createElement
in interface HstCache
remove
public boolean remove(Object key)
- Specified by:
remove
in interface HstCache
clear
public void clear()
- Specified by:
clear
in interface HstCache
getSize
public int getSize()
- Specified by:
getSize
in interface HstCache
getMaxSize
public int getMaxSize()
- Specified by:
getMaxSize
in interface HstCache
Copyright © 2008-2012 Hippo. All Rights Reserved.