Class StorageConfig

java.lang.Object
dev.prozilla.pine.core.state.config.StorageConfig

public class StorageConfig extends Object
Manages configuration options related to storage.
  • Field Details

    • ENABLE_LOCAL_STORAGE

      public static final ConfigKey<Boolean> ENABLE_LOCAL_STORAGE
    • LOAD_ON_READ

      public static final ConfigKey<Boolean> LOAD_ON_READ
    • SAVE_ON_WRITE

      public static final ConfigKey<Boolean> SAVE_ON_WRITE
    • enableLocalStorage

      public final BooleanConfigOption enableLocalStorage
      Determines whether the local storage can use a file to persist data across sessions. Defaults to false.
    • loadOnRead

      public final BooleanConfigOption loadOnRead
      Determines whether the local storage will be loaded every time it is read from. Defaults to false.
    • saveOnWrite

      public final BooleanConfigOption saveOnWrite
      Determines whether the local storage will be saved every time it is written to. Defaults to false.
  • Constructor Details

    • StorageConfig

      public StorageConfig()