Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Observe changes in disk without invalidating cache #337

Closed
saket opened this issue May 20, 2018 · 2 comments
Closed

Observe changes in disk without invalidating cache #337

saket opened this issue May 20, 2018 · 2 comments

Comments

@saket
Copy link
Contributor

saket commented May 20, 2018

One of my use-cases for Store is to provide a in-memory cache for a SQLite backed disk storage. This disk storage is updated from multiple places, but since Store only reads a single value from the persister, the updated values never get delivered to subscribers.

Is there a solution to this? The clearMemory() doesn't work, so I cannot force invalidate the in-memory cache. Is it even worth using Store here?

@saket saket changed the title Read a stream of infinite values from disk Observe changes in disk without invalidating cache May 23, 2018
@digitalbuddha
Copy link
Contributor

#338 will fix your issue, it won't be Room specific but will be a reimplementation of the Store base class & Persister to allow observables rather than singles from disk

@saket
Copy link
Contributor Author

saket commented May 25, 2018

Niceee!

@saket saket closed this as completed May 25, 2018
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