CacheMetadata class
Metadata for cached models
Stores information about cached models in SharedPreferences for tracking cache entries and managing cleanup.
Constructors
- CacheMetadata({required String url, required int sizeInBytes, required DateTime timestamp, required String cacheKey})
-
const
-
CacheMetadata.fromJson(Map<
String, dynamic> json) -
Create from JSON
factory
Properties
- cacheKey → String
-
Cache key (normalized URL)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeInBytes → int
-
Size in bytes
final
- timestamp → DateTime
-
Timestamp when cached
final
- url → String
-
Original URL of the model
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert to JSON
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited