Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ public interface BaseRedisAsyncCommands<K, V> {
* release resources.
*
* @return String simple-string-reply always OK.
* @deprecated since 7.7, use {@link StatefulConnection#close()} instead.
*/
@Deprecated
RedisFuture<String> quit();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public interface RedisServerAsyncCommands<K, V> {
*
* @param addr ip:port.
* @return String simple-string-reply {@code OK} if the connection exists and has been closed.
* @deprecated since 7.7, use {@link #clientKill(KillArgs)} instead.
*/
@Deprecated
RedisFuture<String> clientKill(String addr);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ public interface BaseRedisReactiveCommands<K, V> {
* release resources.
*
* @return String simple-string-reply always OK.
* @deprecated since 7.7, use {@link StatefulConnection#close()} instead.
*/
@Deprecated
Mono<String> quit();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public interface RedisServerReactiveCommands<K, V> {
*
* @param addr ip:port.
* @return String simple-string-reply {@code OK} if the connection exists and has been closed.
* @deprecated since 7.7, use {@link #clientKill(KillArgs)} instead.
*/
@Deprecated
Mono<String> clientKill(String addr);

/**
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/io/lettuce/core/api/sync/BaseRedisCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* @param <K> Key type.
* @param <V> Value type.
* @author Mark Paluch
* @author Tihomir Mateev
* @author Ali Takavci
* @since 4.0
*/
Expand Down Expand Up @@ -153,7 +154,9 @@ public interface BaseRedisCommands<K, V> {
* release resources.
*
* @return String simple-string-reply always OK.
* @deprecated since 7.7, use {@link StatefulConnection#close()} instead.
*/
@Deprecated
String quit();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ public interface RedisServerCommands<K, V> {
*
* @param addr ip:port.
* @return String simple-string-reply {@code OK} if the connection exists and has been closed.
* @deprecated since 7.7, use {@link #clientKill(KillArgs)} instead.
*/
@Deprecated
String clientKill(String addr);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ public interface RedisClusterAsyncCommands<K, V>
* Get array of cluster slots to node mappings.
*
* @return RedisFuture&lt;List&lt;Object&gt;&gt; array-reply nested list of slot ranges with IP/Port mappings.
* @deprecated since 7.7, use {@link #clusterShards()} instead.
*/
@Deprecated
RedisFuture<List<Object>> clusterSlots();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ public interface RedisClusterReactiveCommands<K, V>
* Get array of cluster slots to node mappings.
*
* @return List&lt;Object&gt; array-reply nested list of slot ranges with IP/Port mappings.
* @deprecated since 7.7, use {@link #clusterShards()} instead.
*/
@Deprecated
Flux<Object> clusterSlots();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ public interface BaseNodeSelectionCommands<K, V> {
* release resources.
*
* @return String simple-string-reply always OK.
* @deprecated since 7.7, use {@link io.lettuce.core.api.StatefulConnection#close()} instead.
*/
@Deprecated
Executions<String> quit();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ public interface NodeSelectionServerCommands<K, V> {
*
* @param addr ip:port.
* @return String simple-string-reply {@code OK} if the connection exists and has been closed.
* @deprecated since 7.7, use {@link #clientKill(KillArgs)} instead.
*/
@Deprecated
Executions<String> clientKill(String addr);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ public interface RedisClusterCommands<K, V> extends BaseRedisCommands<K, V>, Red
* Get array of cluster slots to node mappings.
*
* @return List&lt;Object&gt; array-reply nested list of slot ranges with IP/Port mappings.
* @deprecated since 7.7, use {@link #clusterShards()} instead.
*/
@Deprecated
List<Object> clusterSlots();

/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/lettuce/core/protocol/CommandKeyword.java

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, no need to deprecate those.

Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ IDMP, IDMPAUTO, IDMP_DURATION("IDMP-DURATION"), IDMP_MAXSIZE(

RE, REFCOUNT, REMOVE, RELOAD, REPLACE, REDIRECT, REPLICATE, REPLICAS, REV, RESET, RESETCHANNELS, RESETKEYS, RESETPASS,

RESETSTAT, RESTART, RETRYCOUNT, REWRITE, RIGHT, SAVECONFIG, SDSLEN, SETINFO, SETNAME, SETSLOT, SHARDS, SLOTS, STABLE,
RESETSTAT, RESTART, RETRYCOUNT, REWRITE, RIGHT, SAVECONFIG, SDSLEN, SETINFO, SETNAME, SETSLOT, SHARDS, SLOTS, STABLE, MIGRATING, IMPORTING, SAVE, SKIPME,

MIGRATING, IMPORTING, SAVE, SKIPME, SLAVES, STREAM, STORE, SUM, SEGFAULT, SETUSER, TAKEOVER, TRACKING, MAINT_NOTIFICATIONS, TRACKINGINFO, TYPE, UNBLOCK, USED, USERS, USAGE, WEIGHTS, WHOAMI,
SLAVES, STREAM, STORE, SUM, SEGFAULT, SETUSER, TAKEOVER, TRACKING, MAINT_NOTIFICATIONS, TRACKINGINFO, TYPE, UNBLOCK, USED, USERS, USAGE, WEIGHTS, WHOAMI,

WITHMATCHLEN, WITHSCORE, WITHSCORES, WITHVALUES, XOR, XX, FXX, YES, INDENT, NEWLINE, SPACE, GT, LT,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ public interface RedisSentinelAsyncCommands<K, V> {
*
* @param addr ip:port.
* @return String simple-string-reply {@code OK} if the connection exists and has been closed.
* @deprecated since 7.7, use {@link #clientKill(KillArgs)} instead.
*/
@Deprecated
RedisFuture<String> clientKill(String addr);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ public interface RedisSentinelReactiveCommands<K, V> {
*
* @param addr ip:port.
* @return String simple-string-reply {@code OK} if the connection exists and has been closed.
* @deprecated since 7.7, use {@link #clientKill(KillArgs)} instead.
*/
@Deprecated
Mono<String> clientKill(String addr);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ public interface RedisSentinelCommands<K, V> {
*
* @param addr ip:port.
* @return String simple-string-reply {@code OK} if the connection exists and has been closed.
* @deprecated since 7.7, use {@link #clientKill(KillArgs)} instead.
*/
@Deprecated
String clientKill(String addr);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ interface BaseRedisCoroutinesCommands<K : Any, V : Any> {
* release resources.
*
* @return String simple-string-reply always OK.
*
*/
@Deprecated("Use StatefulConnection.close() instead.")
suspend fun quit(): String?

/**
Expand Down