Indexeddb seems to not free memory

末鹿安然 提交于 2019-12-08 04:41:08

问题


I'm using localforage with its IndexedDB driver for storing simple key-value-pairs. But I encountered a problem when trying to remove or update values.

Whenever I call localforage.removeItem("existingKey") or localforage.setItem("existingKey", "some value") with a key of an existing entry no memory is freed.

When using WebSQL instead of IndexedDB the behavior does no occur.

Example on JsBin (Only works in Chrome due to calls to navigator.storage)

来源:https://stackoverflow.com/questions/47302292/indexeddb-seems-to-not-free-memory

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