接口 Cache<K,​V>

所有已知子接口:
Cache.Parameterized<K,​V>, LocatedCache<K,​V>, LocatedCache.Parameterized<K,​V>

public interface Cache<K,​V>
  • 方法详细资料

    • get

      @Nullable default V get(@NotNull K key, @NotNull @NotNull CacheEnvironment<K,​V> env)
    • getAll

      @NotNull @NotNull Map<K,​V> getAll(@NotNull @NotNull Collection<K> keys, @NotNull @NotNull CacheEnvironment<K,​V> env)
    • delete

      default void delete(@NotNull K key)
    • delete

      default void delete(@NotNull K key, Object reason)
    • deleteAll

      default void deleteAll(@NotNull @NotNull Collection<K> keys)
    • deleteAll

      void deleteAll(@NotNull @NotNull Collection<K> keys, @Nullable @Nullable Object reason)