Expire relay cache store after 1 minute

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-04-30 13:26:52 -07:00
parent 5a96012417
commit ee952bcc91

View File

@@ -108,9 +108,15 @@ const fetchRelay: FetchFunction = async (
};
function createRelayEnvironment() {
const source = new RecordSource();
const store = new Store(source, {
queryCacheExpirationTime: 1 * 60 * 1000,
gcReleaseBufferSize: 20,
});
return new Environment({
network: Network.create(fetchRelay),
store: new Store(new RecordSource()),
store,
});
}