code: @Override
      public void close() {
          if (!this.closed.getAndSet(true)) {
              this.cache.close();
              synchronized (this.segmentCaches) {
                  this.segmentCaches.clear();
              }
          }
      }
docs: region AutoCloseable Implementation