E- the type of values being cached
public class InlineCache<E> extends Object
Caches a computed value for a certain amount of time. Re-computes the value once the value is expired and the cache is used again.
A real lookup cache, with a Map like behaviour can be found here:
to create a new inline cache.
|Modifier||Constructor and Description|
Creates a new inline cache based on the given parameters.
|Modifier and Type||Method and Description|
Forces the cache to reset and re-compute its internal value on the next access
Either returns a cached value or computes a new one, if no valid value is in the cache.
public void flush()
Copyright © 2018. All rights reserved.