I saw on this stackoverflow answer(https://stackoverflow.com/a/56336447/9098559) that hikari doesn't support PreparedStatement cache.
I also saw it in the Hikari CP docs.
Many connection pools, including Apache DBCP, Vibur, c3p0 and others offer PreparedStatement caching. HikariCP does not. Why?
But, prepared statement cache is set in the sample code of the Hikari cp document. (https://github.com/brettwooldridge/HikariCP#rocket-initialization)
HikariConfig config = new HikariConfig();
config.setJdbcUrl("jdbc:mysql://localhost:3306/simpsons");
config.setUsername("bart");
config.setPassword("51mp50n");
config.addDataSourceProperty("cachePrepStmts", "true");
config.addDataSourceProperty("prepStmtCacheSize", "250");
config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
HikariDataSource ds = new HikariDataSource(config);
Hikari said it doesn't support cache, but why can I configure cache?
What does cachePrepStmts
mean above?