-
Notifications
You must be signed in to change notification settings - Fork 0
cache.m
Calvin Eiber edited this page Jun 30, 2021
·
1 revision
This function maintains a local cache in the system tempdir
or in a specified folder for the MATLAB + NEURON pelvic nerve model. A separate cache is maintained for each instance of MATLAB; if you close and re-open MATLAB you may not be able to find your prior cache. Some
from a user perspective, you will probably only ever need to call
tools.cache('reset')
to clear the cache and reset
tools.cache
is part of package +tools
cache_folder = tools.cache('PATH') % returns the path to the folder
cache_file = tools.cache('PATH',file_name) % returns specified file
tools.cache('RESET') % clear the existing cache
tools.cache('NEW') % clears the existing cache
tools.cache('NEW',new_path) % make a new empty cache
tools.cache('OLD') % change path to pre-existing cache
tools.cache('SET',new_path) % change path, do not delete files in cache
tools.cache('CLEAR',file_spec) % clear selected files
file_path = tools.cache('GET',file_spec) % get specified files
file_obj = tools.cache('GET-STRUCT',file_spec) % as dir() output
file_path = tools.cache('NEWEST',file_spec) % get just newest file
version 0.3 03-Jun-2020 Calvin Eiber
This function is used by many of the functions in +models, +tools, and +mesh.