mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: limitedMemoryAdapter#bulkGet
This commit is contained in:
parent
c6e0a8fc85
commit
a09b2ff982
2
src/cache/adapters/limited.ts
vendored
2
src/cache/adapters/limited.ts
vendored
@ -80,7 +80,7 @@ export class LimitedMemoryAdapter<T> implements Adapter {
|
|||||||
return storageArray
|
return storageArray
|
||||||
.flatMap(storageEntry => {
|
.flatMap(storageEntry => {
|
||||||
const entries = Array.from(storageEntry.entries());
|
const entries = Array.from(storageEntry.entries());
|
||||||
return entries.filter(([key]) => keySet.has(key)).map(([, value]) => this.options.decode(value as T));
|
return entries.filter(([key]) => keySet.has(key)).map(([, value]) => this.options.decode(value.value as T));
|
||||||
})
|
})
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user