Fix a few bugs, improve storage adapter

This commit is contained in:
Jon Staab
2024-09-04 15:04:47 -07:00
parent b8e69154af
commit 9b44aac584
8 changed files with 64 additions and 41 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export const collection = <T, LoadArgs extends any[]>({
const loadItem = async (key: string, ...args: LoadArgs) => {
const item = indexStore.get().get(key)
const delta = item ? 3600 : 300
const delta = item ? 3600 : 30
if (getFreshness(name, key) > now() - delta) {
return item