private void closeCache() {
    try {
      if (cache != null) {
        if (destroyRegions) {
          destroyRegions(cache);
        }
        cache.close();
      }
    } catch (Exception ignored) {
      // ignored
    }
  }
Use {@code Builder} for more options in constructing {@code CacheRule}.

@return a new {@code Builder}
geode-dunit/src/main/java/org/apache/geode/test/dunit/rules/CacheRule.java