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

x/mtkruto/2_storage.ts>Storage

Cross-runtime JavaScript library for building Telegram clients
Latest
interface Storage
Re-export
import { type Storage } from "https://deno.land/x/mtkruto@0.6.2/2_storage.ts";

Properties

supportsFiles: boolean
mustSerialize: boolean

Methods

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