Skip to content
New: Star-import, signal unraveling, Python 3.12 support, and more

#
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

- Configured

### 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.

#### Cookie consent

We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. With your consent, you're helping us to make our documentation better.

- Google Analytics
- GitHub

Manage settings