Giter Site home page Giter Site logo

XHttp写的很棒,但是作为习惯了客户端开发的人来说,应该要提供接口缓存的功能,个人觉得这个功能非常有必要 about react-native-easy-app HOT 4 CLOSED

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

from react-native-easy-app.

Comments (4)

chende008 avatar chende008 commented on May 18, 2024

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

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

from react-native-easy-app.

haikerenwu avatar haikerenwu commented on May 18, 2024

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

from react-native-easy-app.

chende008 avatar chende008 commented on May 18, 2024

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

from react-native-easy-app.

haikerenwu avatar haikerenwu commented on May 18, 2024

好的

from react-native-easy-app.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.