info.magnolia.module.cache
Interface Cache
- All Known Subinterfaces:
- BlockingCache
- All Known Implementing Classes:
- EhCacheWrapper
public interface Cache
A simple interface around 3rd party or custom cache libraries.
It is completely up to client components to decide what they use as keys and values.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
hasElement
boolean hasElement(Object key)
put
void put(Object key,
Object value)
put
void put(Object key,
Object value,
int timeToLiveInSeconds)
get
Object get(Object key)
remove
void remove(Object key)
clear
void clear()
getName
String getName()
getSize
int getSize()
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.