Summary
Retrieves the value associated to the
key
from the cache. If the value is not yet
cached
producer
will be called to produce it. If the cache needs to discard a value
finalizer
will be given a chance to process it.
Syntax
Object Produce(Object key, IFunction4 producer, IProcedure4 finalizer)
Parameters
Name |
Type |
Description |
key |
Object |
the key for the value - must never change - cannot be null |
producer |
IFunction4 |
will be called if value not yet in the cache - can only be null when the value is found in the cache
|
finalizer |
IProcedure4 |
will be called if a page needs to be discarded - can be null
|
Return Value
Type |
Description |
Object |
the cached value |