pymaid.CatmaidInstance.setup_cache¶
- CatmaidInstance.setup_cache(caching=True, size_limit=128, time_limit=None)[source]¶
Set up a cache for responses from the CATMAID server.
- Parameters:
caching (bool, optional) – Use to activate/deactivate caching. Deactivating does not clear the existing cache, it’s just not used anymore.
size_limit (int | None, optional) – Max amount memory used to cache responses in mb. Set to
None
to for no limit.time_limit (int, optional) – Maximal time in seconds before cached responses are discarded. Set to
None
to for no limit.