UNPKG

staticql

Version:

Type-safe query engine for static content including Markdown, YAML, JSON, and more.

21 lines (20 loc) 409 B
export class InMemoryCacheProvider { constructor() { this.cache = new Map(); } async get(key) { return this.cache.get(key); } async set(key, value) { this.cache.set(key, value); } async has(key) { return this.cache.has(key); } async delete(key) { this.cache.delete(key); } async clear() { this.cache.clear(); } }