@chenzoho/cache
1.0.3 • Public • Published
pnpm i xe-utils
pnpm i @chenzoho/crypto
pnpm i @chenzoho/cache
import { setupCache,toggleCache } from "@chenzoho/cache"
setupCache(/** prefixKey */,/**timeout */,/**local */,/**hasEncrypt */)
import { persist } from "@chenzoho/cache"
// 内存
persist.memoryStorage.get(/** key */)
// 本地
persist.lsStorage.get(/** key */)
// 会话
persist.ssStorage.get(/** key */)
// 混合
persist.mixinStorage.get(/** key */)
// 本地内存混合
persist.lsMixin.get(/** key */)
// 本地会话混合
persist.ssMixin.get(/** key */)
Package Sidebar
Install
Weekly Downloads
Last publish