CacheSizeOptions class
Represents cache size options with configurable maximum sizes in kilobytes (KB) and megabytes (MB).
This class allows the definition of cache size limits for applications that require management of memory or disk cache sizes. It provides a flexible way to set these limits and calculate the total cache size in bytes.
- Annotations
Constructors
- CacheSizeOptions.new({int maxKb = CacheSizeConstants.defaultMaxKb, int maxMb = CacheSizeConstants.defaultMaxMb})
-
Constructor for creating cache size options with customizable maximum sizes.
If no values are provided, it defaults to 0 KB for maxKb and 20 MB for maxMb.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
covariant CacheSizeOptions other) → bool -
The equality operator.
override