1.0.2 • Published 4 years ago

@churchson/q-storage v1.0.2

Weekly downloads
6
License
ISC
Repository
-
Last release
4 years ago

Churchson 封装的 storage

使用方式

  • 引入 storage

    • import { localSt, sessionSt } from 'storage'
  • 含有方法

    • getItem parmas:key 必填, 读取缓存的 key
    • setItem params: key, value, expireTime 两个必填, 一个选填(key:缓存的键,value:缓存的值, expireTime: 过期时间)
    • clear params:key 选填,不填写,清空所有的缓存
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago