CacheEntry class
Constructors
- CacheEntry({required dynamic data, required DateTime timestamp, required DateTime lastAccessTime, required int accessCount, required int sizeInBytes, Duration? ttl})
-
CacheEntry.fromJson(Map<
String, dynamic> json) -
Deserialize CacheEntry from JSON Map
factory
Properties
- accessCount → int
-
final
- data → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastAccessTime → DateTime
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeInBytes → int
-
final
- timestamp → DateTime
-
final
- ttl → Duration?
-
final
Methods
-
copyWith(
{dynamic data, DateTime? timestamp, DateTime? lastAccessTime, int? accessCount, int? sizeInBytes, Duration? ttl}) → CacheEntry - Create a copy with updated fields
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize CacheEntry to JSON Map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited