class CachingTaskQueue {

  public Optional<V> getIfAvailable(final K key) {
    return Optional.ofNullable(cache.get(key));
  }

    CachingTaskQueue(
      final AsyncRunner asyncRunner,
      final MetricsSystem metricsSystem,
      final String metricsPrefix,
      final IntSupplier activeTaskLimit,
      final int maxCacheSize);

}