Chg: メモリをキャッシュしないように / 2026.5.4

This commit is contained in:
2026-05-17 14:42:30 +09:00
parent 7c4b5f7397
commit 95ed876a47
3 changed files with 6 additions and 6 deletions
+2 -5
View File
@@ -17,17 +17,14 @@ class MemoryClass {
max_length: 0,
}));
}
this.cachedMemory = JSON.parse(readFileSync(path, "utf-8"));
}
get memory() {
return this.cachedMemory;
return JSON.parse(readFileSync(path, "utf-8"));
}
set memory(data: any) {
this.cachedMemory = data;
writeFileSync(path, JSON.stringify(this.cachedMemory), "utf-8");
writeFileSync(path, JSON.stringify(data), "utf-8");
}
}