Skip to content

Variable: APP_CACHE_LIMITS ​

ts
const APP_CACHE_LIMITS: object;

Bounds of the cached values; entries and totalBytes bound the deployment's settings.

Type Declaration ​

entries ​

ts
readonly entries: object;

The values one install keeps (APP_CACHE_ENTRIES): bounds and default. One call sets at most max values, whatever the deployment keeps (a name set again counts again).

entries.default ​

ts
readonly default: 16;

entries.max ​

ts
readonly max: 64;

entries.min ​

ts
readonly min: 1;

totalBytes ​

ts
readonly totalBytes: object;

Their UTF-8 bytes together, per install (APP_CACHE_TOTAL_BYTES): bounds and default. max is what the most values one call sets can hold.

totalBytes.default ​

ts
readonly default: 65536;

totalBytes.max ​

ts
readonly max: 524288;

totalBytes.min ​

ts
readonly min: 8192;

ttlSeconds ​

ts
readonly ttlSeconds: object;

How long a value is kept: a day at most, a longer time is cut to a day.

ttlSeconds.max ​

ts
readonly max: 86400;

ttlSeconds.min ​

ts
readonly min: 1;

valueBytes ​

ts
readonly valueBytes: object;

valueBytes.max ​

ts
readonly max: 8192;

valueChars ​

ts
readonly valueChars: object;

A value: at least 8 characters, so it is redacted wherever it would show (shorter text is too common to hide), and 8 KiB as UTF-8 at most.

valueChars.min ​

ts
readonly min: 8;

Released under the Apache-2.0 License.