dedalus.tools.cache =================== .. py:module:: dedalus.tools.cache .. autoapi-nested-parse:: Tools for caching computations. Module Contents --------------- .. py:class:: CachedAttribute(method) Descriptor for building attributes during first access. .. py:attribute:: method .. py:class:: CachedClass(*args, **kw) Metaclass for caching instantiation. .. py:class:: CachedFunction(function, max_size=np.inf) Decorator for caching function outputs. .. py:attribute:: argnames .. py:attribute:: cache .. py:attribute:: function .. py:attribute:: max_size .. py:class:: CachedMethod(function, max_size=np.inf) Descriptor for caching method outputs. .. py:function:: serialize_call(args, kw, argnames, defaults) Serialize args/kw into cache key.