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.
Cache the result of op for no more than limitMs milliseconds.
Do the operation if it has not been done, or if it has not been done recently.