newRedisClient
fun newRedisClient(redisUrl: String = defaultRedisUrl, maxPoolSize: Int = System.getProperty(REDIS_MAX_POOL_SIZE)?.toInt() ?: 10, maxIdleSize: Int = System.getProperty(REDIS_MAX_IDLE_SIZE)?.toInt() ?: 5, minIdleSize: Int = System.getProperty(REDIS_MIN_IDLE_SIZE)?.toInt() ?: 1, maxWaitSecs: Long = System.getProperty(REDIS_MAX_WAIT_SECS)?.toLong() ?: 1L): RedisClient
Creates a new pooled RedisClient with the given configuration.
Pool sizes default to values from system properties (see REDIS_MAX_POOL_SIZE, etc.) or sensible defaults if those properties are not set.
Return
a configured RedisClient with connection pooling
Parameters
redisUrl
the Redis connection URL (defaults to the REDIS_URL environment variable)
maxPoolSize
maximum number of connections in the pool
maxIdleSize
maximum number of idle connections
minIdleSize
minimum number of idle connections
maxWaitSecs
maximum seconds to wait when borrowing a connection