cache.js 382 B

123456789101112131415161718
  1. const clearStorage = function() {
  2. uni.clearStorageSync();
  3. };
  4. const setStorageSync = function(key, data) {
  5. uni.setStorageSync(key, data);
  6. };
  7. const getStorageSync = function(key) {
  8. return uni.getStorageSync(key);
  9. };
  10. const removeStorageSync = function(key) {
  11. uni.removeStorageSync(key)
  12. };
  13. export { clearStorage, setStorageSync, getStorageSync, removeStorageSync }