mastercache
Version:
Multi-tier cache module for Node.js. Redis, Upstash, CloudfareKV, File, in-memory and others drivers
22 lines • 424 B
JavaScript
// src/events/cache/cache-hit.ts
var CacheHit = class {
constructor(key, value, store, graced = false) {
this.key = key;
this.value = value;
this.store = store;
this.graced = graced;
}
name = "cache:hit";
toJSON() {
return {
key: this.key,
value: this.value,
store: this.store,
graced: this.graced
};
}
};
export {
CacheHit
};
//# sourceMappingURL=cache-hit.js.map