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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Store.js v2.0 – Cross-browser storage for all use cases

162 点作者 marcuswestin大约 8 年前

8 条评论

marcuswestin大约 8 年前
Store.js was originally released on HN in 2010 :) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1468802" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1468802</a><p>It&#x27;s live on tens of thousands of websites (like cnn.com!) and has seen lots of improvements over the years.<p>Store.js version 2 is a full revamp with pluggable storage (it will automatically fall back to one that works in every scenario by default), pluggable extra functionality (like expiration, default values, common array&#x2F;object operations, etc), and fully cross-browser automatic testing using saucelabs.com.<p>Feel free to ask any questions! I&#x27;m going to sleep now, but I&#x27;ll make sure to answer in the AM.<p>Cheers!
评论 #13752379 未加载
评论 #13752771 未加载
评论 #13751655 未加载
评论 #13752060 未加载
评论 #13755318 未加载
评论 #13754510 未加载
vanderZwan大约 8 年前
Since I assume both have their pros and cons, when would I want to use Store.js, and when would I want to use localForage[0]? I&#x27;m asking as someone who has offline storage <i>planned</i> for an app, but has yet to get around to it. I&#x27;d like to know which one is probably best for my needs :)<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;localForage&#x2F;localForage" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;localForage&#x2F;localForage</a>
评论 #13756083 未加载
评论 #13754863 未加载
评论 #13754237 未加载
nodesocket大约 8 年前
I just upgraded code in my app (<a href="https:&#x2F;&#x2F;commando.io" rel="nofollow">https:&#x2F;&#x2F;commando.io</a>) that stores some user preferences from $.cookie (jQuery Cookie) to Store.js. Worked flawlessly.<p>As a bonus of switching from cookies to local storage, now requests don&#x27;t send along those values anymore to the server.
评论 #13751941 未加载
onion2k大约 8 年前
This looks really good. I&#x27;ve been using PouchDB for doing something similar, but if I didn&#x27;t need the fancy sync&#x27;ing I&#x27;d be all over this.
评论 #13752903 未加载
评论 #13753724 未加载
dgut大约 8 年前
Thanks for the work you&#x27;ve put into Store.js.
评论 #13753768 未加载
homakov大约 8 年前
localStorage is pretty much only thing we need these days.
评论 #13752089 未加载
评论 #13752388 未加载
jazoom大约 8 年前
I&#x27;ve found great value in simpleStorage, for those who are looking for easier object storage in localStorage.
评论 #13753815 未加载
fareesh大约 8 年前
Does anyone have an angular2 version of this? Could really use it on something I&#x27;m currently working on
评论 #13753765 未加载