getMetadataCacheStatsJson method

Future<String?> getMetadataCacheStatsJson()

Returns metadata cache stats as JSON payload, or null on failure.

Implementation

Future<String?> getMetadataCacheStatsJson() async {
  final r = await _sendRequest<AuditPayloadResponse>(
    MetadataCacheStatsRequest(_nextRequestId()),
  );
  if (r.error != null) {
    return null;
  }
  return r.payload;
}