- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/myronliu347/store.js
- 软件文档: https://github.com/myronliu347/store.js/blob/master/README.md
软件介绍
一个基于 Web Storage 的存储库,提供简单的 api 操作,可以设置缓存时间。
示例代码:
import store from 'si-store' // ES6 可以这么写
var store = require('si-store') // commonJs 规范写法
// 如果是script 标签引入的可以不用管,直接使用store对象即可
store.set('test1', 'this is value') // 存储字符串
store.set('test2', {
key: 'this is test'
}) // 也可以存储对象
store.get('test1') // 获取存储的值 this is value
store.remove('test2') // 删除key为 test2的存储
设置缓存时间
store.set('test', 'test value', 30) // 设置过期时间在30ms之后
setTimeout(function () {
store.get('test') // null
}, 31)
Mastering Bitcoin
Andreas M. Antonopoulos / O'Reilly Media / 2014-12-20 / USD 34.99
Mastering Bitcoin tells you everything you need to know about joining one of the most exciting revolutions since the invention of the web: digital money. Bitcoin is the first successful digital curren......一起来看看 《Mastering Bitcoin》 这本书的介绍吧!
