interface SecretsServiceOptions
Since 0.1.0

Options for SecretsService.

Properties

optional
cacheTtlSeconds: number

Read-cache TTL in seconds. 0 disables caching. Default 300.

optional
clock: () => number

Monotonic clock in milliseconds (e.g. runtime.hrtime). Defaults to a monotonic performance.now-free stub returning 0, which — combined with a non-zero TTL — still caches within a request but never mixes wall-clock.

Usage

import { type SecretsServiceOptions } from "secrets-plugin/src/index.ts";