Skip to content

Commit

Permalink
feat: enlarge detail cache
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 authored Apr 27, 2023
1 parent c8952c2 commit ef10431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/worker/src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class KVStore<V> {
if (!!text) {
const result = JSON.parse(text);
const created = new Date(result.timestamp);
if (now.getTime() - created.getTime() <= 1000 * 60 * 60 * 24) {
if (now.getTime() - created.getTime() <= 1000 * 60 * 60 * 24 * 30) {
return result.value;
} else {
await this.remove(key);
Expand Down

0 comments on commit ef10431

Please sign in to comment.