PreparedStatementsCache<S extends Object> constructor
PreparedStatementsCache<S extends Object> ({
- required int maxSize,
- required void onEvict(
- S statement
- int prepareOnSighting = 1,
- PreparedStatementsInfo? info,
Implementation
PreparedStatementsCache({
required this.maxSize,
required this.onEvict,
this.prepareOnSighting = 1,
PreparedStatementsInfo? info,
}) : info = info ?? PreparedStatementsInfo() {
checkMaxSize(maxSize);
if (prepareOnSighting < 1) {
throw ArgumentError.value(
prepareOnSighting,
'prepareOnSighting',
'must be >= 1',
);
}
}