// Location: ./builtins/session/valkey/src/connection.rs
// Copyright 2026
// SPDX-License-Identifier: Apache-2.0
// Authors: Fred Araujo
//
// Internal connection layer: builds and holds the deadpool-redis
// pool for the Valkey backend. Kept private to this crate — it is NOT a
// public reusable API. When a second consumer (the planned OAuth token
// cache) is actually scheduled, extract a shared layer then
// (refactor-then-reuse), shaped by two real consumers.
use ;
use crateValkeyConfig;
use crateBuildError;
/// Build the connection pool from validated config. The pool is created
/// lazily — `create_pool` does not dial Valkey, so a bad endpoint surfaces
/// on first use (where it correctly fails the request closed) rather than
/// blocking `load_config_yaml`.
pub