1.0.1 • Published 11 months ago

autodelelocalstorage v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago
  1. import { Storage } from 'autodelelocalstorage/dist/index'
  2. 使用 const s = new Storage()

    • s.set(key, value, expire)方法设置【key value】,参数:

      1. key 类型为string
      2. value 类型为any
      3. expire 说明:过期时间,类型为时间戳(+new Date())
    • s.get(key) 获取key值 ,过期则调用remove()方法

    • s.remove(key) 删除key value

    • s.clear() 清空所有key value 不推荐使用

1.0.1

11 months ago

1.0.0

11 months ago