RedisGetConnectionPool
Method Signature
RedisGetConnectionPool(cacheName=[any])Arguments
Argument
Type
Required
Description
Default
Examples
// 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" );
}// 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
Last updated
Was this helpful?
