Interface Remover<K>


public interface Remover<K>
Removes an entry from a cache.
Author:
Paul Ferraro
  • Method Details

    • remove

      default void remove(K id)
      Removes the specified entry from the cache.
      Parameters:
      id - the cache entry identifier.
    • removeAsync

      CompletionStage<Void> removeAsync(K id)
      Removes the specified entry from the cache.
      Parameters:
      id - the cache entry identifier.
      Returns:
      true, if the entry was removed.
    • purge

      default void purge(K id)
      Like remove(Object), but does not notify listeners.
      Parameters:
      id - the cache entry identifier.
    • purgeAsync

      default CompletionStage<Void> purgeAsync(K id)
      Removes the specified entry from the cache.
      Parameters:
      id - the cache entry identifier.
      Returns:
      true, if the entry was removed.