Package xyz.srnyx.annoyingapi.storage
Class StorageConfig.Cache
- java.lang.Object
-
- xyz.srnyx.annoyingapi.storage.StorageConfig.Cache
-
- Enclosing class:
- StorageConfig
public class StorageConfig.Cache extends java.lang.ObjectOptions for the data cache (stored differently per method)
-
-
Field Summary
Fields Modifier and Type Field Description booleanenabledWhether the cache is enabledlongintervalThe interval to save the cache (ifsaveOncontainsStorageConfig.SaveOn.INTERVAL)@NotNull java.util.Set<StorageConfig.SaveOn>saveOnWhen to save the cache
-
Constructor Summary
Constructors Constructor Description Cache()Construct a newStorageConfig.Cacheinstance to parse thecachesection
-
-
-
Field Detail
-
enabled
public final boolean enabled
Whether the cache is enabled
-
saveOn
@NotNull public final @NotNull java.util.Set<StorageConfig.SaveOn> saveOn
When to save the cache
-
interval
public final long interval
The interval to save the cache (ifsaveOncontainsStorageConfig.SaveOn.INTERVAL)
-
-
Constructor Detail
-
Cache
public Cache()
Construct a newStorageConfig.Cacheinstance to parse thecachesection
-
-