Skip to content

Commit

Permalink
Merge branch 'main' into fix-ssr-standby-queries
Browse files Browse the repository at this point in the history
  • Loading branch information
atarek12 authored Apr 14, 2022
2 parents b22bf54 + 3d09a63 commit d4583df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/caching/advanced-topics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Operations that use this fetch policy don't write their result to the cache, and

## Persisting the cache

You can persist and rehydrate the `InMemoryCache` from a storage provider like `AsyncStorage` or `localStorage`. To do so, use the [`apollo3-cache-persist`](https://github.com/apollographql/apollo-cache-persist) library. This library works with a variety of [storage providers](https://github.com/apollographql/apollo-cache-persist#storage-providers).
You can persist and rehydrate the `InMemoryCache` from a storage provider like `AsyncStorage` or `localStorage`. To do so, use the [`apollo3-cache-persist`](https://github.com/apollographql/apollo-cache-persist) library. This library works with a variety of [storage providers](https://github.com/apollographql/apollo-cache-persist/blob/master/docs/storage-providers.md).

To get started, pass your cache and a storage provider to `persistCache`. By default, the contents of your cache are immediately restored asynchronously, and they're persisted on every write to the cache with a short configurable debounce interval.

Expand Down

0 comments on commit d4583df

Please sign in to comment.