PreparedStatementConfig constructor

const PreparedStatementConfig({
  1. int maxCacheSize = 50,
  2. Duration? ttl,
  3. bool enabled = true,
})

Creates a new PreparedStatementConfig instance.

The maxCacheSize specifies maximum number of prepared statements per connection (default: 50).

The ttl specifies time-to-live for cache entries (default: null = no expiration).

The enabled allows disabling cache per-connection (default: true).

Implementation

const PreparedStatementConfig({
  this.maxCacheSize = 50,
  this.ttl,
  this.enabled = true,
});