info.magnolia.module.cache.ehcache
Class EhCacheWrapper
java.lang.Object
info.magnolia.module.cache.ehcache.EhCacheWrapper
- All Implemented Interfaces:
- Cache
public class EhCacheWrapper
- extends java.lang.Object
- implements Cache
Magnolia cache wrapper for underlying ehCache implementation.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Constructor Summary |
EhCacheWrapper(net.sf.ehcache.Ehcache ehcache,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EhCacheWrapper
public EhCacheWrapper(net.sf.ehcache.Ehcache ehcache,
java.lang.String name)
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interface Cache
hasElement
public boolean hasElement(java.lang.Object key)
- Specified by:
hasElement
in interface Cache
put
public void put(java.lang.Object key,
java.lang.Object value)
- Specified by:
put
in interface Cache
remove
public void remove(java.lang.Object key)
- Specified by:
remove
in interface Cache
clear
public void clear()
- Specified by:
clear
in interface Cache
getWrappedEhcache
public net.sf.ehcache.Ehcache getWrappedEhcache()
getName
public java.lang.String getName()
- Specified by:
getName
in interface Cache
getSize
public int getSize()
- Specified by:
getSize
in interface Cache
Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.