Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #231 from aerogear/disable-garbage-collector
Browse files Browse the repository at this point in the history
fix: Disable garbage collecting of old cache entries.
  • Loading branch information
wtrocki authored Feb 1, 2019
2 parents dd13c55 + cb02421 commit 52c16fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/sync/src/createClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ async function buildCachePersistence(clientConfig: DataSyncConfig) {
const cache = new InMemoryCache();
await persistCache({
cache,
storage: clientConfig.storage as PersistentStore<PersistedData>
storage: clientConfig.storage as PersistentStore<PersistedData>,
maxSize: false,
debug: false
});
return { cache };
}

0 comments on commit 52c16fc

Please sign in to comment.