Groovy 2.2.1

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.

Object get(Object key)

Object put(Object key, Object 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 Object get(Object key)


put

public Object put(Object key, Object value)


 

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