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

x/mtkruto/storage/2_storage_memory.ts>StorageMemory

Cross-runtime JavaScript library for building Telegram clients
Latest
class StorageMemory
implements Storage
import { StorageMemory } from "https://deno.land/x/mtkruto@0.6.3/storage/2_storage_memory.ts";

Constructors

new
StorageMemory()

Properties

protected
map: Map<string, unknown>
readonly
mustSerialize: boolean
readonly
supportsFiles: boolean

Methods

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