Skip to content

Commit

Permalink
default argument for wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
himadieievsv committed Dec 31, 2023
1 parent 7f3bd2a commit e5846fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ class LettucePooled<K, V>(
) : AutoCloseable {
/**
* Alternative constructor that uses a supplier and pool config for connections to redis.
* @param poolConfig a configuration for the pool.
* @param poolConfig a configuration for the pool, argument have a default value.
* @param connectionSupplier a supplier for connections to redis.
*/
constructor(
poolConfig: GenericObjectPoolConfig<StatefulRedisConnection<K, V>>,
poolConfig: GenericObjectPoolConfig<StatefulRedisConnection<K, V>> = GenericObjectPoolConfig(),
connectionSupplier: () -> StatefulRedisConnection<K, V>,
) : this(ConnectionPoolSupport.createGenericObjectPool(connectionSupplier, poolConfig))

Expand Down

0 comments on commit e5846fc

Please sign in to comment.