Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 957ff98

Browse files
committed
0.4.1 fixed bug
1 parent 901d4be commit 957ff98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LightCache {
2020
return undefined;
2121
}
2222
const memory = this.caches[key];
23-
if (memory.expiration > new Date().getTime() / 1000) {
23+
if (memory.expiration < new Date().getTime() / 1000) {
2424
return undefined;
2525
}
2626
return memory.value;

0 commit comments

Comments
 (0)