PreparedStatementConfig class

Configuration for prepared statement cache.

Defines cache behavior including LRU eviction policy, size limits, TTL, and thread safety.

Example:

final config = PreparedStatementConfig(
  maxCacheSize: 100,
  ttl: Duration(minutes: 10),
);

Constructors

PreparedStatementConfig({int maxCacheSize = 50, Duration? ttl, bool enabled = true})
Creates a new PreparedStatementConfig instance.
const

Properties

enabled → bool
Whether prepared statement caching is enabled.
final
hashCode → int
The hash code for this object.
no setterinherited
maxCacheSize → int
Maximum number of prepared statements in cache per connection.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
ttl → Duration?
Optional time-to-live for cache entries.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited