Caching collections in backbone.js?

前端 未结 6 918
暖寄归人
暖寄归人 2021-02-03 12:50

What would be the best way to ensure that my collection stays cached and thereby only gets fetched once?

Should I implement some sort of cache layer? Should I share the

6条回答
  •  失恋的感觉
    2021-02-03 13:30

    You can try out

    https://github.com/mrappleton/backbone-fetch-cache

    It also has expires support that is easy to set maximum time of the cache.

提交回复
热议问题