# RedisGetClusterNodes

Returns the cluster nodes information from a Redis cluster.

## Method Signature

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

### Arguments

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

## Examples

Get cluster node information:

```js
// Get the cluster nodes from a Redis cache
var nodes = RedisGetClusterNodes( "myRedisCache" );

// Iterate through nodes
for ( var node in nodes ) {
    println( "Node: " & node );
}
```

Monitor cluster topology:

```js
// Get cluster nodes for diagnostics
var nodes = RedisGetClusterNodes( "myRedisCache" );

// Check cluster health
if ( nodes.size() > 0 ) {
    println( "Cluster has " & nodes.size() & " nodes" );
}
```

## 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
* [API Usage Guide](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-redis/api-usage) - Redis API documentation
