Local and global cache
Local cache - saved data that is available only to the current script.
Global cache - is stored data that is available to all scripts and agents.
Methods for working with local cache:
IContext.StoreObject(...) - Write object to cache
IContext.LoadObject(...) - Load object from cache.
Methods for working with the global cache:
IContext.StoreGlobalObject(...) - Write an object to the global cache.
IContext.LoadGlobalObject(...) - Load object from global cache.
Important: the data cache is periodically cleared to free up space. In order for the data not to be deleted during the next compression, they need to be wrapped in the NotClearableContainer class.
An example with a global cache:
Last updated