Chok’s Typescript Utilities
    Preparing search index...

    Variable KvStoreConfigConst

    KvStoreConfig: {
        dbName: string;
        dbVersion: number;
        expiryMs: number;
        gcIntervalMs: number;
        storeName: string;
    } = ...

    Global defaults can be updated directly.

    Type Declaration

    • dbName: string

      Name of the DB in the indexed DB. Updating the DB name will cause all old entries to be gone.

    • dbVersion: number

      Version of the DB schema. Most likely you will never want to change this. Updating the version will cause all old entries to be gone.

    • expiryMs: number

      30 days in ms.

    • gcIntervalMs: number

      Do GC once per day.

    • storeName: string

      Name of the store within the indexed DB. Each DB can have multiple stores. In practice, it doesn't matter what you name this to be.