CADETProcess.dataStructure.cache.CachedPropertiesMixin

CADETProcess.dataStructure.cache.CachedPropertiesMixin#

class CADETProcess.dataStructure.cache.CachedPropertiesMixin(_lock)[source]#

Bases: Structure

Mixin class for caching properties in a structured object.

This class is designed to be used as a mixin in conjunction with other classes inheriting from Structure. It provides functionality for caching properties and managing a lock state to control the caching behavior.

Notes

  • To prevent the return of outdated state, the cache is cleared whenever the lock state is changed.

property lock: bool#

bool: If True, properties are cached. False otherwise.