UNPKG

mastercache

Version:

Multi-tier cache module for Node.js. Redis, Upstash, CloudfareKV, File, in-memory and others drivers

21 lines (17 loc) 349 B
import type { CacheEvent } from '../../types/main'; /** * Event emitted when a cache entry is missed */ export class CacheMiss implements CacheEvent { name = 'cache:miss' as const; constructor( readonly key: string, readonly store: string, ) {} toJSON() { return { key: this.key, store: this.store, }; } }