UNPKG

618 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.PrefixingKeyValueCache = void 0;
4class PrefixingKeyValueCache {
5 constructor(wrapped, prefix) {
6 this.wrapped = wrapped;
7 this.prefix = prefix;
8 }
9 get(key) {
10 return this.wrapped.get(this.prefix + key);
11 }
12 set(key, value, options) {
13 return this.wrapped.set(this.prefix + key, value, options);
14 }
15 delete(key) {
16 return this.wrapped.delete(this.prefix + key);
17 }
18}
19exports.PrefixingKeyValueCache = PrefixingKeyValueCache;
20//# sourceMappingURL=PrefixingKeyValueCache.js.map
\No newline at end of file