Manages a cache value as the result of invoking a no-arguments method.
-
Method Summary
Returns the previously cached value, if any.
boolean
Returns true if the cache contains a cached value.
void
Resets the cache, discarding the cached value.
void
Stores a new cached value for later reference.
-
Method Details
-
isCached
Returns true if the cache contains a cached value. May also check to see if the cached value is valid.
-
set
Stores a new cached value for later reference.
-
get
Returns the previously cached value, if any.
-
reset
Resets the cache, discarding the cached value.