RedisGetCluster

Returns the Redis Cache Cluster provider by name.

Method Signature

RedisGetCluster(cacheName=[any])

Arguments

Argument
Type
Required
Description
Default

cacheName

any

true

The name of the redis cache to get.

Examples

Get a Redis cluster instance for cache operations:

// Get the cluster from a Redis cache
var cluster = RedisGetCluster( "myRedisCache" );

// Check if it's a cluster
if ( cluster != null ) {
    println( "Successfully retrieved Redis cluster" );
}

Access cluster information:

// Get cluster and perform cluster-specific operations
var cluster = RedisGetCluster( "myRedisCache" );

// Get cluster info
var info = cluster.clusterInfo();
println( info );

Last updated

Was this helpful?