This commit is contained in:
手瓜一十雪
2025-03-02 14:32:21 +08:00
parent 6d8bb49a37
commit e617f9452d

View File

@@ -163,7 +163,7 @@ class Store {
const current = this.get<StoreValueType>(key); const current = this.get<StoreValueType>(key);
if (current === null) { if (current === null) {
this.set(key, 1); this.set(key, 1, 60);
return 1; return 1;
} }
@@ -180,7 +180,7 @@ class Store {
} }
const newValue = numericValue + 1; const newValue = numericValue + 1;
this.set(key, newValue); this.set(key, newValue, 60);
return newValue; return newValue;
} }
} }