Interface CacheEntryRemover<I>

  • Method Details

    • remove

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

      CompletionStage<Void> removeAsync(I 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(I id)
      Like remove(Object), but does not notify listeners.
      Parameters:
      id - the cache entry identifier.
    • purgeAsync

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