You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename LimitedStatementCache to BoundedStatementCache. Synchronize cache access. Update documentation. Extract PgBouncerIntegrationTests into its own top-level class.
[pgjdbc#223][pgjdbc#225]
| `applicationName` | The name of the application connecting to the database. Defaults to `r2dbc-postgresql`. _(Optional)_
79
79
| `autodetectExtensions` | Whether to auto-detect and register `Extension`s from the class path. Defaults to `true`. _(Optional)_
80
80
| `forceBinary` | Whether to force binary transfer. Defaults to `false`. _(Optional)_
81
+
| `preparedStatementCacheQueries` | Determine the number of queries that are cached in each connection. The default is `-1`, meaning there's no limit. The value of `-1` disables the cache. Any other value specifies the cache size.
81
82
| `options` | A `Map<String, String>` of connection parameters. These are applied to each database connection created by the `ConnectionFactory`. Useful for setting generic [PostgreSQL connection parameters][psql-runtime-config]. _(Optional)_
82
83
| `schema` | The schema to set. _(Optional)_
83
84
| `sslMode` | SSL mode to use, see `SSLMode` enum. Supported values: `DISABLE`, `ALLOW`, `PREFER`, `REQUIRE`, `VERIFY_CA`, `VERIFY_FULL`. _(Optional)_
Copy file name to clipboardExpand all lines: src/main/java/io/r2dbc/postgresql/PostgresqlConnectionConfiguration.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -579,11 +579,12 @@ public Builder username(String username) {
579
579
}
580
580
581
581
/**
582
-
* Configure the preparedStatementCacheQueries.
582
+
* Configure the preparedStatementCacheQueries. The default is {@code -1}, meaning there's no limit. The value of {@code 0} disables the cache. Any other value specifies the cache size.
583
583
*
584
584
* @param preparedStatementCacheQueries the preparedStatementCacheQueries
585
585
* @return this {@link Builder}
586
586
* @throws IllegalArgumentException if {@code username} is {@code null}
0 commit comments