ro.isdc.wro.cache
Interface CacheStrategy<K,V>

All Known Implementing Classes:
AbstractSynchronizedCacheStrategyDecorator, CacheStrategyDecorator, ConfigurableCacheStrategy, DefaultSynchronizedCacheStrategyDecorator, LruMemoryCacheStrategy, MemoryCacheStrategy

public interface CacheStrategy<K,V>

CacheStrategy.java.

This interface will be implemented by all classes which will support a caching strategy.

Author:
Alex Objelean

Method Summary
 void clear()
          Clear all cache contents.
 void destroy()
          Perform the clean up.
 V get(K key)
          Restore a value from the cache.
 void put(K key, V value)
          Put a value in the cache using a key.
 

Method Detail

put

void put(K key,
         V value)
Put a value in the cache using a key.

Parameters:
key - Object.
value - Object.

get

V get(K key)
Restore a value from the cache.

Parameters:
key - Object
Returns:
value Object.

clear

void clear()
Clear all cache contents.


destroy

void destroy()
Perform the clean up.



Copyright © 2008-2013. All Rights Reserved.