Skip to content

Commit 6a1d7f8

Browse files
committed
Update deprecation description of JedisConnectionFactory.setDatabase(…).
Mention database index instead of client name. Closes #2831
1 parent 5063143 commit 6a1d7f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/springframework/data/redis/connection/jedis/JedisConnectionFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,8 @@ public int getDatabase() {
681681
* Sets the index of the database used by this connection factory. Default is 0.
682682
*
683683
* @param index database index.
684-
* @deprecated since 2.0, configure the client name using {@link RedisSentinelConfiguration} or
685-
* {@link RedisStandaloneConfiguration}.
684+
* @deprecated since 2.0, configure the database index using {@link RedisStandaloneConfiguration} or
685+
* {@link RedisSentinelConfiguration}.
686686
*/
687687
@Deprecated
688688
public void setDatabase(int index) {

0 commit comments

Comments
 (0)