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

Method Summary
 void clear()
           
 Object get(Object key)
           
 String getName()
           
 int getSize()
           
 boolean hasElement(Object key)
           
 void put(Object key, Object value)
           
 void put(Object key, Object value, int timeToLiveInSeconds)
           
 void remove(Object key)
           
 

Method Detail

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-2013 Magnolia International Ltd.. All Rights Reserved.