public BesuControllerBuilder cacheLastBlocks(final Integer numberOfBlocksToCache) {
    this.numberOfBlocksToCache = numberOfBlocksToCache;
    return this;
  }
Sets the number of blocks to cache.

@param numberOfBlocksToCache the number of blocks to cache
@return the besu controller builder
app/src/main/java/org/hyperledger/besu/controller/BesuControllerBuilder.java