org.das2.util.filesystem.ExpensiveOpCache

This simply reduces invocations of an expensive operation by caching the result for a given number of milliseconds. This was introduced to remove the number of HEAD requests to the server for a given file.


doOp

doOp( String key ) → Object

Do the operation if it has not been done, or if it has not been done recently.

Parameters

key -

Returns:

the result of the operation

search for examples view on GitHub view source