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()
           
 java.lang.Object get(java.lang.Object key)
           
 java.lang.String getName()
           
 int getSize()
           
 boolean hasElement(java.lang.Object key)
           
 void put(java.lang.Object key, java.lang.Object value)
           
 void remove(java.lang.Object key)
           
 

Method Detail

hasElement

boolean hasElement(java.lang.Object key)

put

void put(java.lang.Object key,
         java.lang.Object value)

get

java.lang.Object get(java.lang.Object key)

remove

void remove(java.lang.Object key)

clear

void clear()

getName

java.lang.String getName()

getSize

int getSize()


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.