CacheMetricsResponse constructor

const CacheMetricsResponse(
  1. int requestId, {
  2. int cacheSize = 0,
  3. int cacheMaxSize = 0,
  4. int cacheHits = 0,
  5. int cacheMisses = 0,
  6. int totalPrepares = 0,
  7. int totalExecutions = 0,
  8. int memoryUsageBytes = 0,
  9. double avgExecutionsPerStmt = 0.0,
  10. String? error,
})

Implementation

const CacheMetricsResponse(
  super.requestId, {
  this.cacheSize = 0,
  this.cacheMaxSize = 0,
  this.cacheHits = 0,
  this.cacheMisses = 0,
  this.totalPrepares = 0,
  this.totalExecutions = 0,
  this.memoryUsageBytes = 0,
  this.avgExecutionsPerStmt = 0.0,
  this.error,
});