Meteor / Cordova应用程序的最佳本地存储技术 [英] Best Local Storage Techniques for a Meteor/Cordova App
问题描述
我认为您正在寻找ground:db 包可以离线使用。
概念(来自文档。)
Localstorage是简单和广泛支持 - 但很慢 - 这是为什么我们
只使用它来缓存数据库和方法+试图限制
从其中读取和写入。
GroundDB将优秀方法和minimongo db保存到localstorage
- 将对localstorage的保存数量最小化。使用Ground.resumeMethods
当应用程序加载GroundDB恢复方法和数据库更改时 -
在离线和浏览器关闭时发生。
I am building a Meteor/Cordova application that I need to store data even between application restarts and be able to start-up the app offline with collected data from previous uses, i.e I need more than the minimongo that runs during the application's single session(s). I have looked into HTML5 storage but that maxes out at 5MB. What other techniques can I use to store data?
I think that you are looking for the ground:db package it works perfectly offline.
Concept (from docs.)
Localstorage is simple and widely supported - but slow - Thats why we only use it for caching databases and methods + trying to limit the read and writes from it.
GroundDB saves outstanding methods and minimongo db into localstorage - The number of saves to localstorage is minimized. Use Ground.resumeMethods
When the app loads GroundDB resumes methods and database changes - made when offline and browser closed.
这篇关于Meteor / Cordova应用程序的最佳本地存储技术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!