nl.hippo.client.api.caching
Interface Cache

All Known Subinterfaces:
CachingService, EventAwareCache
All Known Implementing Classes:
NOPCachingService

public interface Cache


Method Summary
 void clear()
          Clear the Store of all data it holds
 boolean containsKey(Object key)
          Indicates if the given key is associated to a contained object.
 Object get(Object key)
          Get the object associated to the given unique key.
 String getStatisticsOverview()
          Returns string formatted cache statistics
 Iterator memoryKeys()
          Returns the list of used keys as an Enumeration of Objects.
 int memorySize()
          Returns count of the objects in the store, or -1 if could not be obtained.
 void remove(Object key)
          Remove the object associated to the given key.
 void store(Object key, Object value)
          Store the given object It is up to the caller to ensure that the key has a persistent state across different JVM executions.
 

Method Detail

get

Object get(Object key)
Get the object associated to the given unique key.


store

void store(Object key,
           Object value)
           throws IOException
Store the given object It is up to the caller to ensure that the key has a persistent state across different JVM executions.

Throws:
IOException

remove

void remove(Object key)
Remove the object associated to the given key.


clear

void clear()
Clear the Store of all data it holds


containsKey

boolean containsKey(Object key)
Indicates if the given key is associated to a contained object.


memoryKeys

Iterator memoryKeys()
Returns the list of used keys as an Enumeration of Objects.


memorySize

int memorySize()
Returns count of the objects in the store, or -1 if could not be obtained.


getStatisticsOverview

String getStatisticsOverview()
Returns string formatted cache statistics



Copyright © 2006-2009 Hippo. All Rights Reserved.