mne.set_cache_dir#

mne.set_cache_dir(cache_dir)[source]#

Set the directory used for temporary and managed cache storage.

This directory is used by joblib to store temporary memmapped arrays and, when requested by supported Raw readers, to persist decoded preload data.

Parameters:
cache_dirstr or None

Directory to use for cache storage. None disables cache storage.

Notes

Persistent decoded Raw entries are not automatically size-limited. They are stored below cache_dir in a versioned raw-preload directory.