Optionaloptions: object
An options object providing initialization params.
Returns true if there is an auth file for the given username. The read or readAll methods must be called first in order to populate the cache.
username to get
Optionaldecrypt: boolean
if true, decrypt encrypted values
OptionalthrowOnNotFound: true
if true, throw if the auth file does not already exist in the cache
Return the contents of all the auth files from cache. The read or readAll methods must be called first in order to populate the cache.
if true, decrypt encrypted values
Return the absolute path to the auth file for a given username. Does not require the file to have been read (resolves purely from the username and the global state directory).
Returns true if the username has been cached.
Returns true if there is an auth file for the given username
Return all auth files under the global state directory.
Read the current on-disk contents of a username's auth file WITHOUT mutating the cache (unlike read,
which replaces the cached config/contents). Use this to inspect what another process has persisted
without disturbing this instance's in-memory state. Returns null if the file can't be read.
username to read
if true, decrypt encrypted values
Read the auth file for the given username. Once the file has been read, it can be re-accessed with the get method.
username to read
if true, decrypt encrypted values
throw if file is not found for username
Read all the auth files under the global state directory
if true, decrypt encrypted values
Delete the auth file for a given username.
Return the file stats for a given userame's auth file.
Write the contents of the auth file for a given username.
Constructs a new
AsyncCreatableinstance. For internal and subclass use only. New subclass instances must be created with the static create method.