Main Content

padv.util.initSessionDataDictionaryCache

Initialize persistent instance of data dictionary cache manager

    Description

    padv.util.initSessionDataDictionaryCache() initializes a persistent instance of the padv.util.DictionaryCache class, DictionaryCache, and locks the instance in memory for the duration of the current MATLAB® session.

    This function manages a persistent instance of the DictionaryCache class, which sets the data dictionary cache to a temporary location when instantiated and resets it to the default location upon deletion. The function uses a persistent variable to store the DictionaryCache instance, ensuring it remains in memory for the duration of the MATLAB session. The function is locked in memory using mlock to prevent it from being cleared.

    If you do not need a persistent cache manager for the current MATLAB session, you can create a cache manager instance by instantiating the padv.util.DictionaryCache class instead.

    This function requires CI/CD Automation for Simulink Check.

    example

    Examples

    collapse all

    Create a persistent data dictionary cache manager instance by using the padv.util.initSessionDataDictionaryCache function.

    padv.util.initSessionDataDictionaryCache();

    The cache persists for the duration of the current MATLAB session and resets to the default location for the next MATLAB session.