Skip to content
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

XHttp写的很棒,但是作为习惯了客户端开发的人来说,应该要提供接口缓存的功能,个人觉得这个功能非常有必要 #3

Closed
haikerenwu opened this issue Aug 12, 2020 · 4 comments

Comments

@haikerenwu
Copy link

No description provided.

@chende008
Copy link
Owner

请求缓存的实现,受本地存储条件的影响不太好处理,特别是若App部分逻辑存在大量、高频的前后台数据交互的话,可能缓存的效率与性能就更不好说了。

所以这样的功能还是开发者自己实现比较好。至于实现方式:可以在XHttpConfig.initParseDataFunc()对接口请求的结果进缓存及回调处理。

@haikerenwu
Copy link
Author

haikerenwu commented Aug 13, 2020

我觉得可以提供api的接口缓存配置,包括存储的配置

@chende008
Copy link
Owner

你可以fork一个版本,加上相关的功能实现,如果后面综合性能达到要求的话,我可以合并到master分支。

@haikerenwu
Copy link
Author

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants