export class BaseStorage {
    #store;
    #namespace;
    constructor(store, namespace) {
        this.#store = store;
        this.#namespace = namespace;
    }
    #buildKey(key) {
        return `${this.#namespace}:${key.toString()}`;
    }
    get(key) {
        return this.#store.get(this.#buildKey(key));
    }
    set(key, value) {
        return this.#store.set(this.#buildKey(key), value);
    }
    delete(key) {
        return this.#store.delete(this.#buildKey(key));
    }
}
//# sourceMappingURL=base-storage.js.map