Interface IRedisCacheOptions

Options for RedisCache class.

interface IRedisCacheOptions {
    debug?: Nilable<boolean>;
    host?: string;
    onError?: Nilable<((error) => any)>;
    port?: number;
}

Properties

debug?: Nilable<boolean>

Should output additional debug logs or not.

Default

false

host?: string

The custom host.

onError?: Nilable<((error) => any)>

Custom, global error handler.

Type declaration

    • (error): any
    • Parameters

      • error: unknown

      Returns any

port?: number

The custom TCP port.

Generated using TypeDoc