A configuration object for a perishable storage implementation.

Hierarchy

Properties

errorOnFailure?: boolean

Whether to throw an error if the storage implementation is not available.

maxAge?: number

The maximum time in milliseconds before which items expire and are removed (default: 60 * 60 * 1000).

prefix?: string

An optional string to prefix the storage key.

storageDriver?: Storage

The storage driver to use.

Generated using TypeDoc