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

hashCode int
The hash code for this object.
no setteroverride
maxKb int
final
maxMb int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalKb double
Calculates the total cache size in kilobytes.
no setter

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