adminFlushCaches method

Future<void> adminFlushCaches(
  1. String region
)

Flushes the Flex caches

Summary:Flushes the Flex caches.
This can only be used by users in the Flex Superuser role.
Return Type:

Parameters:

  • String region (required): The data center region the data resides in

Implementation

Future<void> adminFlushCaches(String region,) async {
  final response = await adminFlushCachesWithHttpInfo(region,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}