Skip to main content
Module

x/fast_storage/local_storage.ts>LocalStorage

An optimized key-value storage based on sqlite.
Go to Latest
class LocalStorage
import { LocalStorage } from "https://deno.land/x/fast_storage@v1.7/local_storage.ts";

Constructors

new
LocalStorage(path?: string, tableName?: string)

Properties

private
database: sqlite.DB
private
path: string | undefined
private
tableName: string

Methods

delete(key: string): Promise<void>
deleteList(keyStartsWith: string): Promise<void>
get(key: string)
getList(keyStartsWith: string): Promise<any[]>
incrementString(s: string)
nextChar(c: string)
set(key: string, value: any): Promise<void>