Making localStorage and/or IndexedDB data offline permanent?

南楼画角 提交于 2019-12-24 20:13:55

问题


Is it possible to make localStorage and/or IndexedDB offline data permanent?

I am planning to make a completely offline HTML5 app and want the data to never get deleted, unless and otherwise the user knowingly does so.

I do not want the data to be deleted even after the app is closed, system is shutdown or something like CCleaner is run.


回答1:


What you are looking is persistent storage as defined in Quota Management API. Currently none of the browser implemented it.

However IndexedDB data, even thought temporary storage, are persist over application life cycle.



来源:https://stackoverflow.com/questions/20309174/making-localstorage-and-or-indexeddb-data-offline-permanent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!