Initial boiler plate project

This commit is contained in:
2024-09-24 03:52:46 +00:00
parent 6120b2d6c3
commit 154b93e267
10034 changed files with 2079352 additions and 2 deletions

View File

@ -0,0 +1,29 @@
import { createIpcServer } from "./server-ipc";
import { IncrementalCache } from "./incremental-cache";
let initializeResult;
export async function initialize(...constructorArgs) {
const incrementalCache = new IncrementalCache(...constructorArgs);
const { ipcPort, ipcValidationKey } = await createIpcServer({
async revalidateTag (...args) {
return incrementalCache.revalidateTag(...args);
},
async get (...args) {
return incrementalCache.get(...args);
},
async set (...args) {
return incrementalCache.set(...args);
},
async lock (...args) {
return incrementalCache.lock(...args);
},
async unlock (...args) {
return incrementalCache.unlock(...args);
}
});
return {
ipcPort,
ipcValidationKey
};
}
//# sourceMappingURL=incremental-cache-server.js.map