org.equanda.util
Interface Cache<KEY,VALUE>

All Known Implementing Classes:
BoundCache

public interface Cache<KEY,VALUE>

Simple cache, slightly based on Map, but only with the needed methods. Special sub-interfaces are provided for loading/purging items to/from cache.

Author:
Joachim Van der Auwera

Nested Class Summary
static interface Cache.Loader<KEY,VALUE>
           
static interface Cache.Purger<VALUE>
           
 
Method Summary
 void clear()
           
 VALUE get(KEY key)
           
 VALUE put(KEY key, VALUE value)
           
 

Method Detail

get

VALUE get(KEY key)

put

VALUE put(KEY key,
          VALUE value)

clear

void clear()


Copyright © 2007-2009. All Rights Reserved.