public AggregationOptionsBuilder cacheResult(boolean cache) {
        if (alloc != null) {
            throw new IllegalStateException("Can't cache pooled objects");
        }
        cacheResult = cache;
        return this;
    }
Returns whether to cache the aggregation result. This option is disabled by default.
Note that this method and {@link #usePooledObjects(ByteBufAllocator)} are mutually exclusive.
If {@link #usePooledObjects(ByteBufAllocator)}} is set and this option is enabled,
an {@link IllegalStateException} will be raised.
core/src/main/java/com/linecorp/armeria/common/AggregationOptionsBuilder.java