Expire relay cache store after 1 minute
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -108,9 +108,15 @@ const fetchRelay: FetchFunction = async (
|
|||||||
};
|
};
|
||||||
|
|
||||||
function createRelayEnvironment() {
|
function createRelayEnvironment() {
|
||||||
|
const source = new RecordSource();
|
||||||
|
const store = new Store(source, {
|
||||||
|
queryCacheExpirationTime: 1 * 60 * 1000,
|
||||||
|
gcReleaseBufferSize: 20,
|
||||||
|
});
|
||||||
|
|
||||||
return new Environment({
|
return new Environment({
|
||||||
network: Network.create(fetchRelay),
|
network: Network.create(fetchRelay),
|
||||||
store: new Store(new RecordSource()),
|
store,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user