Groovy 1.8.0

org.codehaus.groovy.runtime.memoize
[Java] Interface MemoizeCache


public interface MemoizeCache

Represents a memoize cache with its essential methods

Parameters:
- type of the keys
- type of the values
Authors:
Vaclav Pech


Method Summary
void cleanUpNullReferences()

Invoked when some of the held SoftReferences have been evicted by the garbage collector and so should be removed from the cache.

V get(K key)

V put(K key, V value)

 

Method Detail

cleanUpNullReferences

public void cleanUpNullReferences()
Invoked when some of the held SoftReferences have been evicted by the garbage collector and so should be removed from the cache. The implementation must ensure that concurrent invocations of all methods on the cache may occur from other threads and thus should protect any shared resources.


get

public V get(K key)


put

public V put(K key, V value)


 

Copyright © 2003-2010 The Codehaus. All rights reserved.