MELCloud & MELCloud Home API for Node.js - v48.2.0
    Preparing search index...

    Interface SettingManager

    External storage adapter for persisting API session settings.

    interface SettingManager {
        get: (key: string) => string | null | undefined;
        set: (key: string, value: string) => void;
        unset?: (key: string) => void;
    }
    Index
    get: (key: string) => string | null | undefined

    Retrieve a setting value by key. Returns the stored value, or null/undefined if absent.

    set: (key: string, value: string) => void

    Store a setting value by key.

    unset?: (key: string) => void

    Delete a setting key. Optional: when a host does not provide it, the SDK clears by storing an empty string instead, which reads back as absent all the same.