# Cache persistence for Apollo Client 2.0

DevFeed: [Cache persistence for Apollo Client 2.0](<https://devfeed.tech/articles/cache-persistence-for-apollo-client-2-0-23129.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/announcing-apollo-cache-persist-cb05aec16325>)

Author: James Reggio

Published: 2017-12-12T22:48:00Z

Content type: release

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [Persistence](<https://devfeed.tech/topics/persistence.md>), [React Native](<https://devfeed.tech/topics/react-native.md>), [client](<https://devfeed.tech/topics/client.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Caching](<https://devfeed.tech/topics/caching.md>)

Tags: [apollo-client](<https://devfeed.tech/tags/apollo-client.md>), [cache](<https://devfeed.tech/tags/cache.md>), [community](<https://devfeed.tech/tags/community.md>), [compression](<https://devfeed.tech/tags/compression.md>), [data](<https://devfeed.tech/tags/data.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [react](<https://devfeed.tech/tags/react.md>), [react-native](<https://devfeed.tech/tags/react-native.md>)

## AI overview

This guest post introduces a library for persisting and restoring Apollo Client 2.0 caches using persistent storage on the web and React Native. It describes automatic persistence, manual cache controls, storage-provider compatibility, and a React Native trigger that persists the cache when the app leaves the foreground.

## Source excerpt

This is a guest post from Apollo contributor James Reggio, co-founder of Banter, a podcasting client built with Apollo and React Native. First impressions are important, but with mobile apps the second impression is sometimes what counts the most. From a user's perspective, there's nothing more frustrating than launching an app only to stare at a blank screen, waiting for data to load that's already been fetched before.