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

x/mtkruto/3_storage.ts>StorageMemory

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class StorageMemory
implements Storage
extends Storage
import { StorageMemory } from "https://deno.land/x/mtkruto@0.1.157/3_storage.ts";

Constructors

new
StorageMemory(authString?: string)

Properties

protected
map: Map<string, unknown>
protected
messageMap: CacheMap<string, unknown>
readonly
isMemoryStorage: 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]>
getMap(key: readonly StorageKeyPart[]): Map<string, unknown>
getMaps(): [Map<string, unknown>, Map<string, unknown>]
incr(key: readonly StorageKeyPart[], by: number)
set(key_: readonly StorageKeyPart[], value: unknown): MaybePromise<void>