CacheEntry<T> class
Constructors
-
CacheEntry(T data, {int ttl = 3600})
-
CacheEntry with optionsl ttl value (default 3600s)
Properties
-
data
→ T?
-
Returns the cached data or null if expired
no setter
-
expiresIn
→ int
-
Returns the number of seconds before expiration
no setter
-
hasExpired
→ bool
-
Returns true if cashed is expired
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
override