StateAttributeCacheHelper#
- class glue.core.state_objects.StateAttributeCacheHelper(state, attribute, cache=None, **kwargs)[source]#
Bases:
object
Generic class to help with caching values on a per-attribute basis
- Parameters:
- state
glue.core.state_objects.State
The state object with the callback properties to cache
- attributestr
The attribute name - this will be populated once a dataset is assigned to the helper
- cachedict, optional
A dictionary that can be used to hold the cache. This option can be used if a common cache should be shared between different helpers.
- kwargs
Additional keyword arguments are taken to be values that should be used/cached. The key should be the name to be understood by sub-classes of this base class, and the value should be the name of the attribute in the state.
- state
Attributes Summary
Methods Summary
Attributes Documentation
Methods Documentation