andes.core.model.ModelCache#
- class andes.core.model.ModelCache[source]#
Class for caching the return value of callback functions.
Check
ModelCache.__dict__.keys()for fields.Methods
add_callback(name, callback)Add a cache attribute and a callback function for updating the attribute.
refresh([name])Refresh the cached values