AppleSauce
    Preparing search index...

    Interface LivenessStorage

    Storage adapter interface for persisting relay liveness state

    interface LivenessStorage {
        getItem(key: string): any;
        setItem(key: string, value: any): void | Promise<void>;
    }
    Index

    Methods

    • Get an item from storage

      Parameters

      • key: string

        The storage key

      Returns any

      The stored value or null if not found

    • Set an item in storage

      Parameters

      • key: string

        The storage key

      • value: any

        The value to store

      Returns void | Promise<void>