setMaxSize method

Future<void> setMaxSize(
  1. int? size
)

Sets the maximum allowed size of the cache.

Implementation

Future<void> setMaxSize(int? size) async {
  Log.debug('setMaxSize($size)', '$runtimeType');

  info.value.maxSize = size;
  info.refresh();
  await _cacheLocal?.upsert(info.value);
}