Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/storage/1_storage_deno_kv.ts>StorageDenoKV

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class StorageDenoKV
implements Storage
import { StorageDenoKV } from "https://deno.land/x/mtkruto@0.2.50/storage/1_storage_deno_kv.ts";

Constructors

new
StorageDenoKV(path?: string)

Properties

readonly
id: string | null
kv: Deno.Kv | null
readonly
mustSerialize: boolean
readonly
path: string | undefined
readonly
supportsFiles: boolean

Methods

branch(id: string): Storage
get<T>(key: readonly StorageKeyPart[]): Promise<T | null>
getMany<T>(filter: GetManyFilter, params?: { limit?: number; reverse?: boolean; }): AsyncGenerator<[readonly StorageKeyPart[], T], void, unknown>
incr(key: readonly StorageKeyPart[], by: number)
set(key: readonly StorageKeyPart[], value: unknown)