CachedModule

CachedModule#

class CachedModule(params=None, **kwargs)#

Bases: Module

Plugin containing a cache.

The cache is voided on a call of DataManagerBase.reset(). This is typically done everytime the parameters change.

Parameters:

params (t.Any | None)

setup()#

Set up cache.

Add a callback to the parent dataset that will void the cache when called.

Return type:

None

void_cache()#

Clear the cache.

Return type:

None