Skip to content

Commit

Permalink
fix: use correct expires value
Browse files Browse the repository at this point in the history
  • Loading branch information
JasparGupta committed Oct 26, 2023
1 parent 3c7a730 commit 4e201a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class StorageDriver extends CacheDriver<Storage> {
};

this.store.setItem(this.key(key), JSON.stringify(cached));
this.memory?.put(key, cached, expires);
this.memory?.put(key, cached, cached.expires ? new Date(cached.expires) : null);

return value;
}
Expand Down

0 comments on commit 4e201a4

Please sign in to comment.