Adds a short-lived in-memory view to one named TokenCache entry.
Repeated ThrottledTokenCache.get calls avoid disk access until the
throttle interval passes. Call ThrottledTokenCache.refresh to check
the file immediately. When no valid file entry exists,
ThrottledTokenCache.refresh returns undefined but keeps the previous
in-memory value and its throttle timestamp.
Returns a JSON-safe value for logs.
Creates a cache view for name.
Sets the minimum interval between file checks, in milliseconds. The default is 300,000 milliseconds (five minutes).
Optionallogger: LoggerReadonly$typeContains the fully qualified runtime type name.
Returns a JSON-safe value for logs.
Returns a valid token and reads the file only when the memory view is stale.
Returns the current in-memory value without reading the cache file.
Reads the cache file immediately and returns its current valid token.
A valid file token replaces the in-memory value and restarts the throttle
interval. An absent or expired file token returns undefined without
clearing the previous in-memory value or throttle timestamp.
Removes the token from the file and in-memory caches.
Removes the cached token if it equals the specified token.
Adds a short-lived in-memory view to one named TokenCache entry.
Repeated ThrottledTokenCache.get calls avoid disk access until the throttle interval passes. Call ThrottledTokenCache.refresh to check the file immediately. When no valid file entry exists, ThrottledTokenCache.refresh returns
undefinedbut keeps the previous in-memory value and its throttle timestamp.