Meteor / Cordova应用程序的最佳本地存储技术 [英] Best Local Storage Techniques for a Meteor/Cordova App

查看:193
本文介绍了Meteor / Cordova应用程序的最佳本地存储技术的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个Meteor / Cordova应用程序,我需要存储数据,甚至在应用程序重新启动之间,并能够启动应用程序离线与收集的数据从以前的使用,即我需要超过在应用程序中运行的minimongo单个会话。我已经研究过HTML5存储,但是最大在5MB。我可以使用哪些其他技术来存储数据?

解决方案

我认为您正在寻找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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆