Files
Job_App/node_modules/apollo-server-caching/dist/PrefixingKeyValueCache.js
2025-03-28 12:30:19 +11:00

20 lines
618 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrefixingKeyValueCache = void 0;
class PrefixingKeyValueCache {
constructor(wrapped, prefix) {
this.wrapped = wrapped;
this.prefix = prefix;
}
get(key) {
return this.wrapped.get(this.prefix + key);
}
set(key, value, options) {
return this.wrapped.set(this.prefix + key, value, options);
}
delete(key) {
return this.wrapped.delete(this.prefix + key);
}
}
exports.PrefixingKeyValueCache = PrefixingKeyValueCache;
//# sourceMappingURL=PrefixingKeyValueCache.js.map