# RedisGetConnectionPool

Returns the Redis connection pool for a given cache.

## Method Signature

```
RedisGetConnectionPool(cacheName=[any])
```

### Arguments

| Argument    | Type  | Required | Description                         | Default |
| ----------- | ----- | -------- | ----------------------------------- | ------- |
| `cacheName` | `any` | `true`   | The name of the redis cache to get. |         |

## Examples

Get the connection pool from a Redis cache:

```js
// Retrieve the connection pool for a cache
var pool = RedisGetConnectionPool( "myRedisCache" );

// Check if pool is available
if ( pool != null ) {
    println( "Successfully retrieved Redis connection pool" );
}
```

Access pool metrics:

```js
// Get connection pool for monitoring
var pool = RedisGetConnectionPool( "myRedisCache" );

// Access pool statistics
var poolStats = pool.getPoolStats();
println( "Active connections: " & poolStats.activeConnections );
println( "Idle connections: " & poolStats.idleConnections );
```

## Related

* [RedisGetCluster()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-redis/reference/built-in-functions/redisgetcluster) - Get the Redis cluster instance
* [RedisGetProvider()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-redis/reference/built-in-functions/redisgetprovider) - Get the Redis cache provider
* [RedisGetClusterNodes()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-redis/reference/built-in-functions/redisgetclusternodes) - Get cluster node information
* [API Usage Guide](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-redis/api-usage) - Redis API documentation
