org.hippoecm.hst.cache.ehcache
Class HstCacheEhCacheImpl

java.lang.Object
  extended by org.hippoecm.hst.cache.ehcache.HstCacheEhCacheImpl
All Implemented Interfaces:
HstCache

public class HstCacheEhCacheImpl
extends Object
implements HstCache

HstCacheEhCacheImpl

Version:
$Id$

Constructor Summary
HstCacheEhCacheImpl(net.sf.ehcache.Ehcache ehcache)
           
 
Method Summary
 void clear()
           
 CacheElement createElement(Object key, Object content)
           
 CacheElement get(Object key)
           
 int getMaxSize()
           
 int getSize()
           
 int getTimeToIdleSeconds()
           
 int getTimeToLiveSeconds()
           
 boolean isKeyInCache(Object key)
           
 void put(CacheElement element)
           
 boolean remove(Object key)
           
 void setStatisticsEnabled(boolean statisticsEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HstCacheEhCacheImpl

public HstCacheEhCacheImpl(net.sf.ehcache.Ehcache ehcache)
Method Detail

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.