Files
klz-cables.com/.pnpm-store/v10/files/ff/6fe6543714c0b6f0f3c1d35bc7126ca011b19b1489c0a2181ebbeb1db9c186bc031023e4da3e9d17b7b7c96f336415cf7ba7658111e8b63d106495c87214db
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

32 lines
753 B
Plaintext

/* eslint-disable @typescript-eslint/require-await */ export class InMemoryKVAdapter {
store = new Map();
async clear() {
this.store.clear();
}
async delete(key) {
this.store.delete(key);
}
async get(key) {
const value = this.store.get(key);
if (typeof value === 'undefined') {
return null;
}
return value;
}
async has(key) {
return this.store.has(key);
}
async keys() {
return Array.from(this.store.keys());
}
async set(key, value) {
this.store.set(key, value);
}
}
export const inMemoryKVAdapter = ()=>{
return {
init: ()=>new InMemoryKVAdapter()
};
};
//# sourceMappingURL=InMemoryKVAdapter.js.map