pub async fn cached_pool(
cache_key: &str,
config: Config,
max_size: u32,
) -> Result<SqlPool>Expand description
Returns the cached pool for cache_key, building one via config on
first use. cache_key is caller-supplied rather than derived from
config here, since two Configs that are meaningfully different for
pooling purposes (e.g. different resolved AAD tokens) don’t necessarily
differ in a way that’s cheap to hash/compare.