imba-uni-cache
v1.0.5
Published
uni-app localStorage cache
Downloads
3
Maintainers
Readme
安装
# pnpm
pnpm i imba-uni-cache
使用
import { setCache, getCache, delCache, getCacheLoca, clearCache, comCache } from 'imba-uni-cache'
setCache('key', 'val', time)
getCache('key')
delCache('key')
setCacheLoca('key', 'val')
getCacheLoca('key')
comCache('key')
或者
import * as imbaCache from 'imba-cache'
imbaCache.setVariable(uni)
imbaCache.setCache('key', 'val', time)
imbaCache.getCache('key')
imbaCache.delCache('key')
imbaCache.setCacheLoca('key', 'val')
imbaCache.getCacheLoca('key')
imbaCache.comCache('key')