Google Chrome应用程式的Google Chrome资料库大小限制是什么? [英] What Is the Size Limitation of Google Chrome Databases for Google Chrome Apps?

查看:198
本文介绍了Google Chrome应用程式的Google Chrome资料库大小限制是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我主要是一个PHP开发人员。现在我有一个客户引导我在一个独立的应用程序的方向运行在Mac,Windows和Linux。它处理飞行员的天气数据,他希望它在飞行期间离线工作,然后在机场WiFi同步新鲜数据。我立即想到了Google Chrome应用程式。

I'm mostly a PHP developer. Now I have a client steering me in the direction of a standalone app that runs on Mac, Windows, and Linux. It deals with pilot weather data and he wants it to work offline during flights and then sync up fresh data in the airport wifi. Immediately I thought of Google Chrome Apps for this.

我需要知道Google Chrome应用程式专用的Google Chrome资料库的储存空间大小限制。我一直无法找到此信息。

I need to know what the storage size limitation is for Google Chrome databases when used specifically in Google Chrome Apps. I've been having trouble finding this information.

一些额外的相关问题是:

Some extra, related questions are:


  • 当有人清除Chrome浏览器缓存时,这是否意味着他们的数据库,本地存储和应用程序缓存被擦除干净?或者,是否只有那些资源中的一些被清除?我担心有人清除缓存,并在Google Chrome应用中存储所有离线应用。

  • When someone clears their Chrome browser cache, does this mean their Databases, Local Storage, and Application Cache are wiped clean? Or, is it only some of those resources are cleaned? My fear is that someone clears their cache and there goes all my offline app storage in the Google Chrome App.

我讨厌听起来很蠢, 不同于Chrome数据库?

I hate to sound dumb, but is "WebSQL" different than Chrome Databases?

为什么要使用本地存储与Chrome数据库? (在Chrome中执行CTRL + SHIFT + I时,请看到差异,然后点击资源标签。)

Why would I use Local Storage versus a Chrome Database? (See the difference when you do CTRL+SHIFT+I in Chrome, and then click Resources tab.)

推荐答案

默认情况下,存储限制为5MB。此限制可通过 unlimitedStorage 权限()停用更多细节在这里)。

Storage limit is 5MB by default. This limit can be disabled with unlimitedStorage permission (more details here).

我不想清除我的缓存来测试它,但我很确定存储不清理。有一个相关的问题报告,说明没有办法明确删除存储现在。

I don't want to clear my cache to test it, but I am pretty sure storage is not cleaned. There is a related issue report which says that there is no way to delete storage explicitly right now.

WebDatabase,WebSQL,数据库api都指同一件事 - 目前基于SQLite的Web数据库API。

WebDatabase, WebSQL, "a database api" all refer to the same thing - web database API that is currently based on SQLite.

Web数据库几乎是一个完整的数据库,localStorage只是一个存储键值对的hashmap(关联数组)。

Web database is pretty much a full scale database, localStorage is just a hashmap (an associative array) that stores key-value pairs.

这篇关于Google Chrome应用程式的Google Chrome资料库大小限制是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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