Cross browser HTML5 storage library [closed]

♀尐吖头ヾ 提交于 2019-12-04 05:59:19

Try out SequelSphere

It is a 100% HTML5/JavaScript Relational Database that works cross-browser and uses local storage to persist it's data. You can use SQL to query it as well. It is it's own database engine, and doesn't rely upon the built-in relational databases. As such, it will work across all browsers.

If you'd prefer to always be able to store

See http://www.jstorage.info/, specifically the Browser support section

If the browser is allowed to not cache if it doesn't support it

See locache: https://github.com/d0ugal/locache

The important bit for you being that is gracefully degrades and uses other mthods to store the information. It's also very easy to use and rather lightweight!

JavaScript framework for client side caching in the browser using DOM Storage with expiring values. With a memcache inspired API usage is very simple. Locache has no dependencies and is very small.

locache gracefully degrades when the browser doesn't support localStorage. Usually this will be IE6 or IE7, you wont get any errors, but caching attempts will be silently dropped and lookups will always appear to be a cache miss.

You should try lawnchair.

Also, note that not all storage engines are created equal. If you want to store large amounts of data and access it asynchronously (not blocking the UI), then you're restricted to IndexedDB and WebSQL, which are not supported in all browsers. This gives you more cross-browser support for IndexedDB, but IE will still be left out.

Have you check out of my own library YDN-DB

It is very carefully design for IndexedDB API on performance and robutness, but great fallback to WebSQL and localStorage.

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