Skip to main content

Built and signed on GitHub Actions

npm and jsr proxy registry for benchmarking code that uses those registries

This package works with Deno
This package works with Deno
JSR Score
82%
Published
5 months ago (0.2.0)
Package root>cache>mem-cache.ts
import type { CacheItem, CacheKey, SyncCache } from "./mod.ts"; export class MemCache implements SyncCache { #memCache = new Map<CacheKey, CacheItem>(); set(key: CacheKey, value: CacheItem) { this.#memCache.set(key, value); } get(key: CacheKey) { return this.#memCache.get(key); } }