setMaximumAmbientCacheSize method

Future<void> setMaximumAmbientCacheSize(
  1. int size
)

Limits the size of the runtime's ambient cache.

size is in bytes. Offline regions don't count toward it. It defaults to 50 MB, or to 0 in the browser when the runtime has no cache file.

See mln_runtime_set_maximum_ambient_cache_size in the C API reference.

Implementation

Future<void> setMaximumAmbientCacheSize(int size) => _run(
  (arena, completion) => raw.mln_runtime_set_maximum_ambient_cache_size(
    _handle.raw,
    size,
    completion,
    nativeDiagnostic,
  ),
);