@icreate/ics-chromely-plugin-caching-memory-js-sdk
v0.0.1
Published
<!-- * @Author: 刘邓 * @Date: 2022-05-09 16:25:43 * @LastEditors: 刘邓 * @LastEditTime: 2022-05-10 16:48:25 * @Description: * @FilePath: \README.md -->
Downloads
3
Maintainers
Keywords
Readme
Usage
npm i @icreate/ics-chromely-plugin-caching-memory-js-sdk
Features
- MemoryCache:增、查、删除缓存
Importing library
You can import the generated bundle to use the whole library generated by this starter:
import MemoryCache from '@icreate/ics-chromely-plugin-caching-memory-js-sdk'
使用MemoryCache
// 获取缓存
MemoryCache.getCache(key: string): Promise<any>
// 设置缓存
MemoryCache.setCache(key: string, value: string): Promise<any>
//删除缓存
MemoryCache.removeCache(key: string): Promise<any>