public interface CacheStrategy<K,V>
This interface will be implemented by all classes which will support a caching strategy.
| Modifier and Type | Method and Description |
|---|---|
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.
|
Copyright © 2008-2016. All Rights Reserved.