Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/storage/1_storage_memory.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/storage/1_storage_memory.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>