CachedModule

CachedModule#

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

Bases: Module

Module containing a cache.

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

Parameters:
  • params (Any | None)

  • kwargs (Any)

setup()#

Set up cache.

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

Return type:

None

void_cache()#

Clear the cache.

Return type:

None