CacheDescription class

Constructors

CacheDescription(String _key, {bool ignoreSave = false, int lifeSpan = CacheDescription.oneMinute * 2, bool overrideTime = false, bool invalidateCache = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
ignoreSave bool
this tell the cache client to only fetch from cache and to ignore saving to cache
final
invalidateCache bool
expire cache data
final
key String
no setter
lifeSpan int
time in seconds, defaults to 120 seconds
final
overrideTime bool
ignore cache expiration time
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? lifeSpan, bool? overrideTime, bool? invalidateCache, bool? ignoreSave}) CacheDescription
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 ==(Object other) bool
The equality operator.
inherited

Constants

oneDay → const int
oneHour → const int
oneMinute → const int
oneMonth → const int
oneSecond → const int
in milliseconds
sevenDays → const int