Interface Remover<K>


public interface Remover<K>
Removes an entry from the cache
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    purge(K id)
    Like remove(Object), but does not notify listeners.
    boolean
    remove(K id)
    Removes the specified entry from the cache.
  • Method Details

    • remove

      boolean remove(K id)
      Removes the specified entry from the cache.
      Parameters:
      id - the cache entry identifier.
      Returns:
      true, if the entry was removed.
    • purge

      default boolean purge(K id)
      Like remove(Object), but does not notify listeners.
      Parameters:
      id - the cache entry identifier.
      Returns:
      true, if the entry was removed.