UNPKG

@gabliam/cache

Version:
27 lines (26 loc) 568 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoOpCache = void 0; class NoOpCache { constructor(name) { this.name = name; } async start() { } async stop() { } getName() { return this.name; } getNativeCache() { return this; } async get(key) { return Promise.resolve(undefined); } async put(key, value) { } async putIfAbsent(key, value) { return undefined; } async evict(key) { } async clear() { } } exports.NoOpCache = NoOpCache;