import { BUTILS_CACHE } from './consts';

/**
 * 设置缓存数据
 * @param {string} key
 * @param {any} value
 * @returns
 */
function setCache(key, value) {
  var caches = window[BUTILS_CACHE] || {};
  window[BUTILS_CACHE] = caches;
  caches[key] = value;
}

export default setCache;
