A configuration object for a storage implementation.

interface IStorageConfig {
    errorOnFailure?: boolean;
    prefix?: string;
    storageDriver?: Storage;
}

Hierarchy (view full)

Properties

errorOnFailure?: boolean

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

prefix?: string

An optional string to prefix the storage key.

storageDriver?: Storage

The storage driver to use.