package io.quarkus.cache;

import java.util.Set;
import java.util.concurrent.CompletableFuture;

import io.smallrye.common.constraint.Nullable;

public interface CaffeineCache extends Cache {

    /**
     * Returns an unmodifiable {@link Set} view of the keys contained in this cache. If the cache entries are modified while an
     * iteration over the set is in progress, the set will remain unchanged.
     *
     * @return a set view of the keys contained in this cache
     */
    Set<Object> keySet();

    /**
     * Returns the future associated with {@code key} in this cache, or {@code null} if there is no
     * cached future for {@code key}. This method is delegating to the
     * {@link com.github.benmanes.caffeine.cache.AsyncCache#getIfPresent(Object)}, while recording the cache stats if they are
     * enabled.
     *
     * @param key key whose associated value is to be returned
     * @return the future value to which the specified key is mapped, or {@code null} if this cache
     *         does not contain a mapping for the key
     * @throws NullPointerException if the specified key is null
     * @see com.github.benmanes.caffeine.cache.AsyncCache#getIfPresent(Object)
     */
    @Nullable
    <V> CompletableFuture<V> getIfPresent(Object key);
}

@@ -94,56 +94,8 @@
 e;%0A%0A
-import io.smallrye.common.constraint.Nullable;%0A%0A
 publ
@@ -1157,22 +1157,8 @@
  */%0A
-    @Nullable%0A
     

remove nullable annotation