Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

Clearing the cache does not automatically fetch the latest #127

Open
qianshengta opened this issue Jun 12, 2018 · 0 comments
Open

Clearing the cache does not automatically fetch the latest #127

qianshengta opened this issue Jun 12, 2018 · 0 comments

Comments

@qianshengta
Copy link

Dear author, I have tried to follow your method, such as the following code is my attempt.The result is that the data in the data field in the cache is set to empty.But once again, when I read the cache of the API, he returned the empty data directly to me without asking for new data.If I need new data, I must manually refresh it.Before that I thought that if I read an empty cache, I would automatically refresh the data.Is there any misunderstanding about how I use it?


Observable observable = Observable.just(new ArrayList());       
RequestFactory.getStartCacheRequest().testCacheForOneClear(observable, new EvictProvider
                (true)).subscribe();
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

1 participant