Skip to content

platform/policy/policy-cache

Defined in: app/src/platform/policy/policy-cache.ts:7

Keeps the last successfully read policy values in a JSON file.

new JsonFilePolicyCache(path): JsonFilePolicyCache

Defined in: app/src/platform/policy/policy-cache.ts:11

string

Cache file, inside the profile directory.

JsonFilePolicyCache

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.

readonly RawPolicyValue[] | undefined

PolicyCache.read

write(values): void

Defined in: app/src/platform/policy/policy-cache.ts:24

Replaces the cached values.

readonly RawPolicyValue[]

The values just read from the providers.

void

PolicyCache.write