Add docs on configuring underlying secret cache
saikatak opened this issue · 3 comments
Currently when using these wrapper drivers implemented by this project there is no notes on how the Driver can be instantiated with custom cache manager having a ttl value configured by the user.
Would request to add notes on the same. In case if such instantiation is not supported. Can we add the support for the same
This is already possible through this constructor.
There are already docs on this here
To configure the cache, see SecretCacheConfiguration.
How do I configure the cache when using a connection pool such as the c3p0 examples provided in the README?
I'm asking on this ticket because this is where Google sent when trying to figure this out.
Issue #214 suggests that the sample pool configuration given in the README does not enable the cache. That jibes with my reading of the code, as I didn't see anything related to caching in JDBCSecretCacheBuilderProvider
.
While #214 is discussing Hikari, #13 (comment) shows that the Hikari pool works fine with this AWS library (as expected). If you could provide an example of how I should configure the cache when using a connection pool, that would be much appreciated.
Is it only possible to do programmatically?