autocached#
- autocached(func)#
Make a property autocached.
When the property is accessed, it will first check if a key with the same name (as the property) exists in the module cache. If yes, it directly returns the cached values, otherwise it runs the code of the property, caches the result and returns it.
There is no check on the module containing a cache. If not it will raise an AttributeError on accessing the property.