Package xyz.srnyx.annoyingapi.storage
Class StorageConfig.Cache
java.lang.Object
xyz.srnyx.annoyingapi.storage.StorageConfig.Cache
- Enclosing class:
StorageConfig
Options for the data cache (stored differently per method)
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether the cache is enabledfinal longThe interval to save the cache (ifsaveOncontainsStorageConfig.SaveOn.INTERVAL)final @NotNull Set<StorageConfig.SaveOn> When to save the cache -
Constructor Summary
ConstructorsConstructorDescriptionCache()Construct a newStorageConfig.Cacheinstance to parse thecachesection -
Method Summary
-
Field Details
-
enabled
public final boolean enabledWhether the cache is enabled -
saveOn
When to save the cache -
interval
public final long intervalThe interval to save the cache (ifsaveOncontainsStorageConfig.SaveOn.INTERVAL)
-
-
Constructor Details
-
Cache
public Cache()Construct a newStorageConfig.Cacheinstance to parse thecachesection
-