A configuration object for a perishable storage implementation.

interface IBinderServerConfig {
    errorOnFailure?: boolean;
    maxAge: number;
    prefix?: string;
    storageDriver?: Storage;
    storageKey?: string;
    url: string;
}

Hierarchy (view full)

Properties

errorOnFailure?: boolean

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

maxAge: number

The maxiumum time in milliseconds that a stored session will be retried for. Useful if you know how long the Binder servers are kept alive so that you can skip checking servers that have definitely shutdown.

prefix?: string

An optional string to prefix the storage key.

storageDriver?: Storage

The storage driver to use.

storageKey?: string

The storage key to use for storing the Binder session.

url: string

The BinderHub's URL.