public synchronized int cacheSize() {
    return outstandingTasks.size() + cache.size();
  }
Cache size.

@return the cache size
services/tasks/src/main/java/org/hyperledger/besu/services/tasks/CachingTaskCollection.java