platform/policy/policy-cache
Classes
Section titled “Classes”JsonFilePolicyCache
Section titled “JsonFilePolicyCache”Defined in: app/src/platform/policy/policy-cache.ts:7
Keeps the last successfully read policy values in a JSON file.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new JsonFilePolicyCache(
path):JsonFilePolicyCache
Defined in: app/src/platform/policy/policy-cache.ts:11
Parameters
Section titled “Parameters”string
Cache file, inside the profile directory.
Returns
Section titled “Returns”Methods
Section titled “Methods”read()
Section titled “read()”read(): readonly
RawPolicyValue[] |undefined
Defined in: app/src/platform/policy/policy-cache.ts:15
Returns the cached values, or undefined when there is no usable cache.
Returns
Section titled “Returns”readonly RawPolicyValue[] | undefined
Implementation of
Section titled “Implementation of”write()
Section titled “write()”write(
values):void
Defined in: app/src/platform/policy/policy-cache.ts:24
Replaces the cached values.
Parameters
Section titled “Parameters”values
Section titled “values”readonly RawPolicyValue[]
The values just read from the providers.
Returns
Section titled “Returns”void