| org.mmbase.cache.CacheImplementationInterface
CacheImplementationInterface | public interface CacheImplementationInterface extends Map<K, V>(Code) | | Classes which can be used as a cache implementation need to implement this interface.
An implementation of this interface has to be thread-safe to guarantee correctness.
author: Michiel Meeuwissen version: $Id: CacheImplementationInterface.java,v 1.9 2007/08/10 07:53:52 michiel Exp $ since: MMBase-1.8 |
Method Summary | |
void | config(Map<String, String> configuration) | int | getCount(K key) Returns the hit-count on a certain key (if implementable, -1 otherwise). | int | maxSize() | void | setMaxSize(int size) Sets the (maximal) size of the cache (if implementable). |
config | void config(Map<String, String> configuration)(Code) | | Configure the implementation with the given configuration values
|
getCount | int getCount(K key)(Code) | | Returns the hit-count on a certain key (if implementable, -1 otherwise).
|
maxSize | int maxSize()(Code) | | Gets the (maximal) size of the cache (if implementable)
|
setMaxSize | void setMaxSize(int size)(Code) | | Sets the (maximal) size of the cache (if implementable).
|
|
|