setCacheTimeout method

void setCacheTimeout(
  1. int seconds
)

Set cache timeout

Implementation

void setCacheTimeout(int seconds) {
  try {
    final lib = PlatformLoader.loadCommons();
    final setTimeoutFn = lib.lookupFunction<Void Function(Uint32),
        void Function(int)>('rac_model_assignment_set_cache_timeout');
    setTimeoutFn(seconds);
  } catch (e) {
    _logger.debug('rac_model_assignment_set_cache_timeout error: $e');
  }
}