cache.js 213 B

1234567891011
  1. export const setCache = (key, data) => {
  2. uni.setStorageSync(key, data)
  3. }
  4. export const getCache = (key) => {
  5. return uni.getStorageSync(key)
  6. }
  7. export const removeCache = (key) => {
  8. uni.removeStorageSync(key)
  9. }