import { Keydb } from "https://deno.land/x/keydb@1.0.0/sqlite.ts";
Simple and common Key-value storage interface for multiple Database backends.
Constructors
new
Keydb(adapter?: Adapter | string, options?: KeydbOptions)Methods
clear(): Promise<this>
Clear complete Database.
delete(key: string): Promise<boolean>
Delete a Key from Database.
get<T = any>(key: string): Promise<T | undefined>
Get a Value by Key name.
keys(): Promise<string[]>
Get an Array of all Key Names.
set(): Promise<this>
key: string,
value: any,
ttl?: number,
Set a Key's Value.