Cache class

Constructors

Cache(dynamic key, dynamic data)
Cache.rebuild(dynamic key)

Properties

content ↔ dynamic
getter/setter pair
contentKey String?
getter/setter pair
expiredAfter int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
key String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
getter/setter pair
typeKey String?
getter/setter pair

Methods

generateCompositeKey(String keyType) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(Cache cache) → void
setContent(dynamic data, [String? contentKey]) → dynamic
setExpiredAfter(int expiredAfter) → dynamic
setKey(String key) → dynamic
setType(String? type, [String? typeKey]) → dynamic
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

currentTimeInSeconds() int
isExpired(int? cacheExpiryInfo) bool