Interface UserInventoryProvider


public interface UserInventoryProvider
  • Method Details

    • refreshCache

      void refreshCache()
    • findById

      @NotNull @NotNull Optional<UserInventory> findById(int userId, int inventoryId)
    • findAll

      @NotNull @NotNull @Unmodifiable List<UserInventory> findAll()
    • upsert

      @NotNull @NotNull Optional<UserInventory> upsert(int userId, int inventoryId, @NotNull @NotNull String value)
    • delete

      int delete(int userId, int inventoryId)
    • of

      @Internal @NotNull static @NotNull UserInventoryProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)