Google Chrome 应用程序的存储 API 大小是否受到限制?
Are Storage API limited in size for Google Chrome applications?
在线 Web 应用程序的存储 API(IndexedDB、WebSQL、LocalStorage)的大小受到限制,对于打包的 Google Chrome 应用程序也是如此吗?
有一个权限,"unlimitedStorage"
,可以解锁一些限制。
Apps 文档中有概述:Managing HTML5 Offline Storage。
另请注意,打包的应用不能使用some of the Web Platform features,即localStorage
和朋友,以及webSql被排除(分别替换为chrome.storage
和 IndexedDB)。
您可以在 Chrome 应用程序中使用的内容:
chrome.storage.local
chrome.storage.sync
(配额与 "unlimitedStorage"
无关)
- IndexedDB
- HTML FileSystem API 对于 "virtual" 文件系统
chrome.fileSystem
用于通过用户提示访问真实文件系统
chrome.syncFileSystem
作为由 Google 驱动器支持的文件系统(显然,受限)
在线 Web 应用程序的存储 API(IndexedDB、WebSQL、LocalStorage)的大小受到限制,对于打包的 Google Chrome 应用程序也是如此吗?
有一个权限,"unlimitedStorage"
,可以解锁一些限制。
Apps 文档中有概述:Managing HTML5 Offline Storage。
另请注意,打包的应用不能使用some of the Web Platform features,即localStorage
和朋友,以及webSql被排除(分别替换为chrome.storage
和 IndexedDB)。
您可以在 Chrome 应用程序中使用的内容:
chrome.storage.local
chrome.storage.sync
(配额与"unlimitedStorage"
无关)- IndexedDB
- HTML FileSystem API 对于 "virtual" 文件系统
chrome.fileSystem
用于通过用户提示访问真实文件系统chrome.syncFileSystem
作为由 Google 驱动器支持的文件系统(显然,受限)