function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
// 内库使用-start
import Storage from "./../Storage";
// 内库使用-end

/* 测试使用-start
import { Storage } from 'seedsui-react'
测试使用-end */

function setCache(url, cacheKey, data) {
  if (!cacheKey || !['string', 'number'].includes(_typeof(cacheKey))) {
    return;
  }
  Storage.setItem(url, {
    cacheKey: cacheKey,
    data: data
  });
}
export default setCache;