You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
the set method is not concurrent access safe, because it's possible to read the cache files while they are being rewritten by a cache update request.
try {
await ensureDirExists(path.dirname(filename));
// you can read these files from an other green thread at the same time
await fs.writeFile(filename + ".data", compressedValue);
await fs.writeFile(filename + ".meta", JSON.stringify(metadata));
}
replace them with some atomic file system method, like rename: