Skip to content

lei1248276/uni-use-cache

Repository files navigation

uni-use-cache

  • uni-app 获取缓存数据,修改数据会自动更新缓存(默认为异步获取缓存数据)

Install

pnpm add uni-use-cache
yarn add uni-use-cache
npm install uni-use-cache

Usage

import useCache from 'uni-use-cache'
const data = useCache('key', ref())
const data1 = useCache('key1', ref(), true)
const data2 = useCache('key2', reactive({}))

Releases

No releases published

Packages

No packages published