- 授权协议: 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)
The Definitive Guide to Django
Adrian Holovaty、Jacob Kaplan-Moss / Apress / 2007-12-06 / CAD 45.14
Django, the Python-based equivalent to the Ruby on Rails web development framework, is presently one of the hottest topics in web development today. In The Definitive Guide to Django: Web Development ......一起来看看 《The Definitive Guide to Django》 这本书的介绍吧!
