Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/mtkruto/utilities/0_cache_map.ts>CacheMap

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class CacheMap
extends Map<K, V>
import { CacheMap } from "https://deno.land/x/mtkruto@0.1.157/utilities/0_cache_map.ts";

Constructors

new
CacheMap(limit: number, entries?: readonly (readonly [K, V])[] | null)
new
CacheMap(limit: number)
new
CacheMap(limit: number, entries?: readonly (readonly [K, V])[] | null)

Methods

set(key: K, value: V): this