@dragongate/miniprogram-storage
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@dragongate/miniprogram-storage

Build Status npm version

API

  • config 全局配置
    • logger 日志配置
  • getStorage<TResult = unknown, TKey = string>(key: TKey, defaultValue?: TResult): Promise<TResult> 异步读取
  • setStorage<TData = unknown, TKey = string>(key: TKey, data: TData): Promise<{errMsg: string;}> 异步写入
  • removeStorage<Tkey = string>(key: Tkey):Promise<{errMsg: string;}> 异步删除
  • clearStorage():Promise<{errMsg: string;}> 异步清空
  • [ ] cache in memory

Readme

Keywords

none

Package Sidebar

Install

npm i @dragongate/miniprogram-storage

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

16.9 kB

Total Files

9

Last publish

Collaborators

  • newfuture