145Storage 2 - v0.6.0
    Preparing search index...

    Class FlatWebStorage

    Hierarchy (View Summary)

    Index
    _accessorCache: Map<string, Function>
    _arrayWrappers: WeakMap<JSONDebounceStorage, DeepProxyWrapExempt>
    _data: any
    _handler: DeepProxyHandler & {
        set: (
            target: Object,
            key: string,
            value: any,
            receiver: Object | undefined,
        ) => boolean;
    }
    _splitCache: Map<string, string[]>
    arrayDebouncers: Map<string, JSONDebounceStorage>
    cache: Map<string, any>
    isReady: boolean = false
    scheduledUpdate: boolean | undefined
    schema: { [k: string]: any }
    schemaStorage: JSONDebounceStorage
    updateTimerID: Timeout | undefined
    • get data(): any

      Returns any

    • Template-tag getter: flat.get\count`orflat.get`config.display.brightness`. Always async — awaits load()` and returns the value (array keys unwrap to the raw array).

      Parameters

      • strings: readonly string[]
      • ...keys: readonly any[]

      Returns Promise<any>

    • Loads a key (or subtree) from the adapter into the cache, returning the value. Synchronous when the key is already cached (or the adapter is synchronous); returns a Promise otherwise. On an async adapter, reading flat.data.<key> after a cache miss throws Key not loaded ... 'await load()' — await this first.

      Parameters

      • Optionalkey: string = ""

      Returns any