Package-level declarations

Types

Link copied to clipboard
abstract class AtomicStore<V> : StoreBase<V> , Loggable, Traceable

使用 AtomicReference 为缓存,io.github.autotweaker.api.store.JsonStore 为持久化服务的存储基类。

Link copied to clipboard
abstract class ImmutableStore<V> : StoreBase<V>

使用 Mutable 为缓存,io.github.autotweaker.api.store.JsonStore 为持久化服务的存储基类。

Link copied to clipboard
class JsonStoreAccessor<V>(store: JsonStore, serializer: KSerializer<V>, default: () -> V) : Traceable, Loggable

基于 JsonStore 的持久化工具类,处理序列化、反序列化、默认值、懒加载。

Link copied to clipboard
abstract class MutableStore<V> : StoreBase<V>

使用 V 为缓存,io.github.autotweaker.api.store.JsonStore 为持久化服务的存储基类。

Link copied to clipboard
abstract class StoreBase<V> : JsonStorable

此类的子类无需显式实现 JsonStorable,需要实现 serializer / default