Class IndexedDBPersistedLRUCache<K, V>

Type Parameters

Constructors

Properties

#dbPromise: Promise<DB<K, V>>
#maxCount: number

Methods

  • Returns AsyncGenerator<IDBPCursorWithValueIteratorValue<Schema<K, V>, ArrayLike<"store">, "store", "access" | "expiry", IDBTransactionMode>, void, undefined>

  • Parameters

    • store: Store<K, V, "readwrite">
    • key: K
    • value: V
    • options: Metadata

    Returns Promise<void>

  • Returns Promise<void>

  • Returns Promise<number>

  • Parameters

    • key: K

    Returns Promise<void>

  • Parameters

    • count: number

    Returns Promise<number>

  • Parameters

    • key: K

    Returns Promise<undefined | Value<K, V>>

  • Returns Promise<number>

  • Type Parameters

    • M extends IDBTransactionMode

    Parameters

    • mode: M
    • key: K

    Returns Promise<null | CursorWithValue<K, V, M>>

  • Parameters

    • key: K

    Returns Promise<boolean>

  • Parameters

    • mode: IDBTransactionMode
    • field: "access" | "expiry"

    Returns Promise<IDBPIndex<Schema<K, V>, ArrayLike<"store">, "store", "access" | "expiry", IDBTransactionMode>>

  • Parameters

    • maxCount: number

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Type Parameters

    • M extends IDBTransactionMode

    Parameters

    • mode: M

    Returns Promise<Store<K, V, M>>

  • Parameters

    Returns Promise<void>

Generated using TypeDoc