TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

LocalForage – A fast and simple storage library for JavaScript

108 点作者 vmorgulis超过 8 年前

7 条评论

AshleysBrain超过 8 年前
This is a great library. It's simple but flexible. You can treat it like async key-value storage but it has extra features like using different databases, all while handling the details of IndexedDB, WebSQL or localStorage support.
tqkxzugoaupvwqr超过 8 年前
General question: How do you handle cases where people surf in private mode in Safari? Safari doesn’t allow localStorage in private mode.
评论 #13422108 未加载
评论 #13421778 未加载
languagewars超过 8 年前
Interesting, I've been very happy with pouchdb finagling all these browser DBs into one that matches couchdb on the server side.. I would really have to think about the auth logistics for memcache to switch to a kV store. But that would be even more insane minimalism atop the absurd complexity of the web stack.
skrowl超过 8 年前
This is at least the 8th time this has been posted (<a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=localForage" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=localForage</a>). Is there something new or significant that we need to know about?
评论 #13423264 未加载
cplantijn超过 8 年前
While I am fascinated by this, what are some good use cases for using offline storage? How can a web-enabled browser app benefit from offline storage? I&#x27;ve come to appreciate the power that client-side stores like what Redux and MobX provide, but what&#x27;s the benefit and use case of using this?
评论 #13425681 未加载
评论 #13423215 未加载
评论 #13424798 未加载
评论 #13425318 未加载
dvh超过 8 年前
It&#x27;s asynchronous, localStorage is synchronous
jazoom超过 8 年前
I tried this but ended up going with SimpleStorage. I can&#x27;t remember why but there was something better about it.