Interface IKV

A key-value store built on top of the Database API (based on sqlite)

interface IKV {
    delete: (key: string) => Promise<void>;
    exists: (key: string) => Promise<boolean>;
    get: <T = string>(key: string) => Promise<undefined | null | T>;
    set: (key: string, value: string) => Promise<void>;
}

Properties

Properties

delete: (key: string) => Promise<void>
exists: (key: string) => Promise<boolean>
get: <T = string>(key: string) => Promise<undefined | null | T>
set: (key: string, value: string) => Promise<void>