FHIRClient - v3.0.0
    Preparing search index...

    Interface Storage

    Simple key/value storage interface

    interface Storage {
        get: (key: string) => Promise<any>;
        set: (key: string, value: any) => Promise<any>;
        unset: (key: string) => Promise<boolean>;
    }
    Index
    get: (key: string) => Promise<any>

    Gets the value at key. Returns a promise that will be resolved with that value (or undefined for missing keys).

    set: (key: string, value: any) => Promise<any>

    Sets the value on key and returns a promise that will be resolved with the value that was set.

    unset: (key: string) => Promise<boolean>

    Deletes the value at key. Returns a promise that will be resolved with true if the key was deleted or with false if it was not (eg. if did not exist).