Move locks to their own DB collection

This commit is contained in:
Divya Jagadish authored and Zaid Humaimidi committed 2023-10-08 12:14:06 -07:00
1 parent c3954c277f
commit 02665faa9f
6 files changed
+61 -46

No files matched your search

+2 -1
View File
@@ -18,7 +18,8 @@
*/
import { setTimeoutPromise } from "./util";
import { acquireLock, get, releaseLock, set } from "./cache";
import { get, set } from "./cache";
import { acquireLock, releaseLock } from "./lock";
const REFRESH = 5000;
const EVICT_TIMEOUT = 120000;