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

若有缓存且未过期,不再请求网络,返回缓存数据 #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xueyongwei
Copy link

缓存加载机制:若未要求强制使用网络,则去加载缓存,若缓存未过期,则返回缓存,不再请求网络。若缓存过期,或无缓存,则请求网络,返回网络数据。

@xueyongwei xueyongwei changed the title 若有缓存且未过期,不再请求直接网络数据,返回缓存数据 若有缓存且未过期,不再请求网络,返回缓存数据 Dec 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant