Skip to content

caching module

Utilities for caching.


clear_pycache function

clear_pycache()

Clear pycache folders and .pyc files.


Cacheable class

Cacheable()

Class that contains cacheable properties and methods.

Required to register cacheable_property and cacheable_method().

See vectorbtpro.registries.ca_registry for details on the caching procedure.

Subclasses


get_ca_setup class method

Cacheable.get_ca_setup()

Get instance setup of type CAInstanceSetup if the instance method was called and class setup of type CAClassSetup otherwise.