UNPKG

@colormate/core

Version:

A modular and efficient color management library for JavaScript and TypeScript applications.

15 lines (14 loc) 261 B
export class MemoizationCache { constructor() { this.cache = new Map(); } get(key) { return this.cache.get(key); } set(key, value) { this.cache.set(key, value); } clear() { this.cache.clear(); } }