CacheAble mixin

Cacheable content mixin

Cacheable contents must have a identifier for each getter and setter

identifier used indexing, contentGetter(from db) local getter

Properties

cacheTime DateTime
Content cache time
getter/setter pair
hashCode int
hashcode override for hashmap performance improvement if your identifier is not be unique, there may be data loss
no setteroverride
identifier String
Unique identifier for your content identifier used every where please ensure your identifier is unique
no setter
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.
inherited

Operators

operator ==(Object other) bool
== operator override for hashmap performance improvement == use identifier on compare your data if your identifier is not be unique, there may be data loss
override