py2store.utils.cache_descriptors¶
descriptors to cache data
-
py2store.utils.cache_descriptors.
CachedProperty
(*args)[source]¶ CachedProperties. This is usable directly as a decorator when given names, or when not. Any of these patterns will work: *
@CachedProperty
*@CachedProperty()
*@CachedProperty('n','n2')
* def thing(self: …; thing = CachedProperty(thing) * def thing(self: …; thing = CachedProperty(thing, ‘n’)