net.sourceforge.wurfl.core.cache
Interface CacheProvider

All Known Implementing Classes:
EhCacheProvider, HashMapCacheProvider, LRUMapCacheProvider, NullCacheProvider

public interface CacheProvider

Provide cache feature.

Add support to some funny cache library implementing this interface.

Version:
$Id: CacheProvider.java 432 2010-05-06 12:12:53Z filippo.deluca $
Author:
Fantayeneh Asres Gizaw, Filippo De Luca

Method Summary
 void clear()
          Remove all items from cache.
 Object get(Object key)
          Returns the cached item.
 void put(Object key, Object value)
          Put an item in cache associated to a key.
 

Method Detail

get

Object get(Object key)
Returns the cached item.

Parameters:
key - The cached item key.
Returns:
Cached Object, null if this cache does not contain it.

put

void put(Object key,
         Object value)
Put an item in cache associated to a key.

Parameters:
key - The caching item key.
value - The caching item.

clear

void clear()
Remove all items from cache.



Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.