retain
Store remote keys from cache locally or return locally stored keys
Description
Examples
Input Arguments
Output Arguments
Tips
As a performance optimization you may choose to temporarily store a set of keys and their values in your MATLAB session or worker instead of the persistence service. Keys retained in the this fashion will be automatically written to the persistence service (see
flush
) when MATLAB exits or when the first function call returns.Manually control the lifetime of retained keys with the
flush
andpurge
methods.
Version History
Introduced in R2018b