Update deprecation description of JedisConnectionFactory.setDatabase(…).

Mention database index instead of client name.

Closes #2831
This commit is contained in:
Mark Paluch
2024-01-18 10:58:21 +01:00
parent 506314355d
commit 6a1d7f8a06

View File

@@ -681,8 +681,8 @@ public class JedisConnectionFactory implements InitializingBean, DisposableBean,
* Sets the index of the database used by this connection factory. Default is 0.
*
* @param index database index.
* @deprecated since 2.0, configure the client name using {@link RedisSentinelConfiguration} or
* {@link RedisStandaloneConfiguration}.
* @deprecated since 2.0, configure the database index using {@link RedisStandaloneConfiguration} or
* {@link RedisSentinelConfiguration}.
*/
@Deprecated
public void setDatabase(int index) {