cache
Members
(static) private :JSCache
- Description:
Private cache for each script. The private cache can only be accessed by the same script and is cleared when the script is unloaded. You can use it to e.g. store timers or counters between subsequent runs of that script. When the script is unloaded and the cache is cleared, all timers in the cache are cancelled.
- Source:
Private cache for each script. The private cache can only be accessed by the same script and is cleared when the script is unloaded. You can use it to e.g. store timers or counters between subsequent runs of that script. When the script is unloaded and the cache is cleared, all timers in the cache are cancelled.
Type:
(static) shared :JSCache
- Description:
Shared cache that is shared across all rules and scripts, it can therefore be accessed from any automation language. The access to every key is tracked and the key is removed when all scripts that ever accessed that key are unloaded. If the key that has been auto-removed stored a timer, that timer is cancelled.
Do not use the shared cache to store objects, as it is not thread-safe and can cause script execution failures.
- Source:
Shared cache that is shared across all rules and scripts, it can therefore be accessed from any automation language. The access to every key is tracked and the key is removed when all scripts that ever accessed that key are unloaded. If the key that has been auto-removed stored a timer, that timer is cancelled.
Do not use the shared cache to store objects, as it is not thread-safe and can cause script execution failures.