function resetCache(key) {
      if (key !== undefined) {
        if (requests[key] !== undefined) {
          requests[key] = null;
        }
        vpsCache.remove(key);
      } else {
        vpsCache.removeAll();
        vpsInfoCache.removeAll();
        /* eslint-disable no-restricted-syntax, no-prototype-builtins */
        for (const request in requests) {
          if (requests.hasOwnProperty(request)) {
            requests[request] = null;
          }
        }
        /* eslint-enable no-restricted-syntax, no-prototype-builtins */
      }
    }
/*
     * Private function to reset the cache
     *
     */
Private function to reset the cache
Private function to reset the cache
function resetCache(key) {
      if (key !== undefined) {
        if (requests[key] !== undefined) {
          requests[key] = null;
        }
        vpsCache.remove(key);
      } else {
        vpsCache.removeAll();
        vpsInfoCache.removeAll();
        for (const request in requests) {
          if (requests.hasOwnProperty(request)) {
            requests[request] = null;
          }
        }
      }
    }
function resetCache ( key ) { if ( key !== undefined ) { if ( requests [ key ] !== undefined ) { requests [ key ] = null ; } vpsCache . remove ( key ) ; } else { vpsCache . removeAll ( ) ; vpsInfoCache . removeAll ( ) ; for ( const request in requests ) { if ( requests . hasOwnProperty ( request ) ) { requests [ request ] = null ; } } } }
Private function to reset the cache
Private function to reset the cache
/* eslint-disable no-restricted-syntax, no-prototype-builtins */ /* eslint-enable no-restricted-syntax, no-prototype-builtins */