Interface CacheService

All Superinterfaces:
AutoCloseable

public interface CacheService extends AutoCloseable
  • Method Details

    • get

      @NotNull <T> @NotNull Optional<T> get(@NotNull @NotNull String key, @NotNull @NotNull Class<T> type)
    • get

      @NotNull @NotNull String get(@NotNull @NotNull String key)
    • put

      void put(@NotNull @NotNull String key, @NotNull @NotNull Object value, @org.jetbrains.annotations.Range(from=0L, to=9223372036854775807L) long ttl)
    • invalidate

      void invalidate(@NotNull @NotNull String key)
    • invalidateAll

      void invalidateAll()