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

x/mtkruto/storage/0_storage.ts>Storage

Cross-runtime JavaScript library for building Telegram clients
Latest
interface Storage
import { type Storage } from "https://deno.land/x/mtkruto@0.6.2/storage/0_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