◆ CacheEnableSet()

virtual void CacheEnableSet ( RSICacheObject  cache,
bool  enable,
uint32_t  expirationMilliseconds 
pure virtual

Configure a class to cache data for specified time.

ℹ This function is avaliable in RapidCode and RapidSequencer

CacheData configures a class to cache data for specified time
enableIf enable is true, any methods in this class will cache data If state is enable, class data will be read at time of call
expirationMillisecondsThe amount of time in milliseconds to cache data before it expires
Sample Code:
// Configure this class to cache data for one second
controller->CacheData(true, 1000);
Caching data is disabled by default.