Skip to content

FR: Cache API #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
PierBover opened this issue Jun 10, 2017 · 1 comment
Closed

FR: Cache API #44

PierBover opened this issue Jun 10, 2017 · 1 comment

Comments

@PierBover
Copy link

Something I had to develop myself when working with Firebase is a small cache API so that users going back to previous views would not have to wait for data.

I implemented a in memory cache with a persistent on() connection in the background completely decoupled from my views. After the initial data download from a database path, this memory cache is only updated with value events so even for large datasets it works great. My users always see the updated data when returning to previous views instantly.

In any case, the Firebase SDK needs to provide a way to cache the data somehow. Maybe this would go hand in hand with the offline functionality, or not.

@jshcrowthe
Copy link
Contributor

AFAICT, this is a fork of the discussion going on in #17. I'm going to close this in favor of the other thread.

If I'm not understanding, please re-open with some more context! 😄

@firebase firebase locked and limited conversation to collaborators Oct 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants