From 544ec67c2077959395a9e566a5b4d465fb694c5a Mon Sep 17 00:00:00 2001 From: Tihomir Krasimirov Mateev Date: Fri, 7 Jun 2024 14:55:04 +0300 Subject: [PATCH] Setting the next release to be 6.4.x as part of #2880 (#2881) * Bump version of lettuce-core to 6.4.0 * Change all @since notations to match the next release 6.4.x and also fixed two typos in the API JavaDoc * Fixed formatting issues --- pom.xml | 2 +- src/main/java/io/lettuce/core/KillArgs.java | 4 +- .../java/io/lettuce/core/ScanIterator.java | 4 +- src/main/java/io/lettuce/core/ScanStream.java | 4 +- src/main/java/io/lettuce/core/XReadArgs.java | 2 +- .../api/async/BaseRedisAsyncCommands.java | 4 +- .../api/async/RedisHashAsyncCommands.java | 156 +++++++++--------- .../core/api/async/RedisKeyAsyncCommands.java | 20 +-- .../async/RedisScriptingAsyncCommands.java | 2 +- .../reactive/BaseRedisReactiveCommands.java | 4 +- .../reactive/RedisHashReactiveCommands.java | 148 ++++++++--------- .../reactive/RedisKeyReactiveCommands.java | 20 +-- .../RedisScriptingReactiveCommands.java | 2 +- .../core/api/sync/BaseRedisCommands.java | 4 +- .../core/api/sync/RedisHashCommands.java | 156 +++++++++--------- .../core/api/sync/RedisKeyCommands.java | 20 +-- .../core/api/sync/RedisScriptingCommands.java | 2 +- .../async/BaseNodeSelectionAsyncCommands.java | 4 +- .../async/NodeSelectionHashAsyncCommands.java | 156 +++++++++--------- .../async/NodeSelectionKeyAsyncCommands.java | 20 +-- .../NodeSelectionScriptingAsyncCommands.java | 2 +- .../api/sync/BaseNodeSelectionCommands.java | 4 +- .../api/sync/NodeSelectionHashCommands.java | 156 +++++++++--------- .../api/sync/NodeSelectionKeyCommands.java | 20 +-- .../sync/NodeSelectionScriptingCommands.java | 2 +- .../pubsub/RedisClusterPubSubListener.java | 6 +- .../NodeSelectionPubSubAsyncCommands.java | 4 +- .../NodeSelectionPubSubReactiveCommands.java | 4 +- .../api/sync/NodeSelectionPubSubCommands.java | 4 +- .../core/pubsub/RedisPubSubListener.java | 6 +- .../api/async/RedisPubSubAsyncCommands.java | 4 +- .../reactive/RedisPubSubReactiveCommands.java | 4 +- .../pubsub/api/sync/RedisPubSubCommands.java | 4 +- .../lettuce/core/api/BaseRedisCommands.java | 4 +- .../lettuce/core/api/RedisHashCommands.java | 156 +++++++++--------- .../io/lettuce/core/api/RedisKeyCommands.java | 20 +-- .../core/api/RedisScriptingCommands.java | 2 +- 37 files changed, 568 insertions(+), 568 deletions(-) diff --git a/pom.xml b/pom.xml index e3a401e050..9be9d982f7 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ io.lettuce lettuce-core - 7.0.0.BUILD-SNAPSHOT + 6.4.0.BUILD-SNAPSHOT jar Lettuce diff --git a/src/main/java/io/lettuce/core/KillArgs.java b/src/main/java/io/lettuce/core/KillArgs.java index d24325c504..9a8ed21acd 100644 --- a/src/main/java/io/lettuce/core/KillArgs.java +++ b/src/main/java/io/lettuce/core/KillArgs.java @@ -167,7 +167,7 @@ public static KillArgs user(String username) { * * @return new {@link KillArgs} with {@literal MAXAGE} set. * @see KillArgs#maxAge(Long) - * @since 7.0 + * @since 6.4 */ public static KillArgs maxAge(Long maxAge) { return new KillArgs().maxAge(maxAge); @@ -259,7 +259,7 @@ public KillArgs type(Type type) { * * @param maxAge must not be {@code null}. * @return {@code this} {@link KillArgs}. - * @since 7.0 + * @since 6.4 */ public KillArgs maxAge(Long maxAge) { diff --git a/src/main/java/io/lettuce/core/ScanIterator.java b/src/main/java/io/lettuce/core/ScanIterator.java index 011eb02dc7..d3b617d240 100644 --- a/src/main/java/io/lettuce/core/ScanIterator.java +++ b/src/main/java/io/lettuce/core/ScanIterator.java @@ -113,7 +113,7 @@ public static ScanIterator> hscan(RedisHashCommands * @param Key type. * @param Value type. * @return a new {@link ScanIterator}. - * @since 7.0 + * @since 6.4 */ public static ScanIterator hscanNovalues(RedisHashCommands commands, K key) { return hscanNovalues(commands, key, Optional.empty()); @@ -147,7 +147,7 @@ public static ScanIterator> hscan(RedisHashCommands * @param Key type. * @param Value type. * @return a new {@link ScanIterator}. - * @since 7.0 + * @since 6.4 */ public static ScanIterator hscanNovalues(RedisHashCommands commands, K key, ScanArgs scanArgs) { diff --git a/src/main/java/io/lettuce/core/ScanStream.java b/src/main/java/io/lettuce/core/ScanStream.java index 560c22a4a0..0b2828c0f5 100644 --- a/src/main/java/io/lettuce/core/ScanStream.java +++ b/src/main/java/io/lettuce/core/ScanStream.java @@ -114,7 +114,7 @@ public static Flux> hscan(RedisHashReactiveCommands * @param Key type. * @param Value type. * @return a new {@link Flux}. - * @since 7.0 + * @since 6.4 */ public static Flux hscanNovalues(RedisHashReactiveCommands commands, K key) { return hscanNovalues(commands, key, Optional.empty()); @@ -148,7 +148,7 @@ public static Flux> hscan(RedisHashReactiveCommands * @param Key type. * @param Value type. * @return a new {@link Flux}. - * @since 7.0 + * @since 6.4 */ public static Flux hscanNovalues(RedisHashReactiveCommands commands, K key, ScanArgs scanArgs) { diff --git a/src/main/java/io/lettuce/core/XReadArgs.java b/src/main/java/io/lettuce/core/XReadArgs.java index c08338e2dd..b6fa3ead93 100644 --- a/src/main/java/io/lettuce/core/XReadArgs.java +++ b/src/main/java/io/lettuce/core/XReadArgs.java @@ -189,7 +189,7 @@ public static StreamOffset latest(K name) { * * @param name must not be {@code null}. * @return the {@link StreamOffset} object without a specific offset. - * @since 7.0 + * @since 6.4 */ public static StreamOffset last(K name) { diff --git a/src/main/java/io/lettuce/core/api/async/BaseRedisAsyncCommands.java b/src/main/java/io/lettuce/core/api/async/BaseRedisAsyncCommands.java index 76aac4f8ea..444513ee0c 100644 --- a/src/main/java/io/lettuce/core/api/async/BaseRedisAsyncCommands.java +++ b/src/main/java/io/lettuce/core/api/async/BaseRedisAsyncCommands.java @@ -91,7 +91,7 @@ public interface BaseRedisAsyncCommands { * * @param shardChannels channel keys. * @return array-reply a list of channels and number of subscribers for every channel. - * @since 7.0 + * @since 6.4 */ RedisFuture> pubsubShardNumsub(K... shardChannels); @@ -108,7 +108,7 @@ public interface BaseRedisAsyncCommands { * @param shardChannel the shard channel type: key. * @param message the message type: value. * @return Long integer-reply the number of clients that received the message. - * @since 7.0 + * @since 6.4 */ RedisFuture spublish(K shardChannel, V message); diff --git a/src/main/java/io/lettuce/core/api/async/RedisHashAsyncCommands.java b/src/main/java/io/lettuce/core/api/async/RedisHashAsyncCommands.java index 209d6c469f..ee0b8eed1a 100644 --- a/src/main/java/io/lettuce/core/api/async/RedisHashAsyncCommands.java +++ b/src/main/java/io/lettuce/core/api/async/RedisHashAsyncCommands.java @@ -224,7 +224,7 @@ public interface RedisHashAsyncCommands { * * @param key the key. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ RedisFuture> hscanNovalues(K key); @@ -243,7 +243,7 @@ public interface RedisHashAsyncCommands { * @param key the key. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ RedisFuture> hscanNovalues(K key, ScanArgs scanArgs); @@ -264,7 +264,7 @@ public interface RedisHashAsyncCommands { * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ RedisFuture> hscanNovalues(K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -283,7 +283,7 @@ public interface RedisHashAsyncCommands { * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ RedisFuture> hscanNovalues(K key, ScanCursor scanCursor); @@ -302,7 +302,7 @@ public interface RedisHashAsyncCommands { * @param channel streaming channel that receives a call for every key. * @param key the key. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ RedisFuture hscanNovalues(KeyStreamingChannel channel, K key); @@ -323,7 +323,7 @@ public interface RedisHashAsyncCommands { * @param key the key. * @param scanArgs scan arguments. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ RedisFuture hscanNovalues(KeyStreamingChannel channel, K key, ScanArgs scanArgs); @@ -347,7 +347,7 @@ RedisFuture hscan(KeyValueStreamingChannel channel, K ke * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ RedisFuture hscanNovalues(KeyStreamingChannel channel, K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -369,7 +369,7 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ RedisFuture hscanNovalues(KeyStreamingChannel channel, K key, ScanCursor scanCursor); @@ -443,10 +443,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param seconds the seconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ RedisFuture> hexpire(K key, long seconds, K... fields); @@ -455,13 +455,13 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * * @param key the key of the fields. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ RedisFuture> hexpire(K key, long seconds, ExpireArgs expireArgs, K... fields); @@ -472,10 +472,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param seconds the TTL {@link Duration} * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ RedisFuture> hexpire(K key, Duration seconds, K... fields); @@ -487,10 +487,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param expireArgs the {@link ExpireArgs}. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ RedisFuture> hexpire(K key, Duration seconds, ExpireArgs expireArgs, K... fields); @@ -501,10 +501,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hexpireat(K key, long timestamp, K... fields); @@ -513,13 +513,13 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -530,10 +530,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hexpireat(K key, Date timestamp, K... fields); @@ -542,13 +542,13 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -559,10 +559,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hexpireat(K key, Instant timestamp, K... fields); @@ -571,13 +571,13 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -588,7 +588,7 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param fields one or more fields to get the TTL for. * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in seconds; * {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hexpiretime(K key, K... fields); @@ -599,7 +599,7 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param fields one or more fields to remove the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 1} indicating expiration time is removed; * {@code -1} field has no expiration time to be removed; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hpersist(K key, K... fields); @@ -610,10 +610,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param milliseconds the milliseconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ RedisFuture> hpexpire(K key, long milliseconds, K... fields); @@ -622,13 +622,13 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ RedisFuture> hpexpire(K key, long milliseconds, ExpireArgs expireArgs, K... fields); @@ -639,10 +639,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param milliseconds the milliseconds. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ RedisFuture> hpexpire(K key, Duration milliseconds, K... fields); @@ -651,13 +651,13 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ RedisFuture> hpexpire(K key, Duration milliseconds, ExpireArgs expireArgs, K... fields); @@ -668,10 +668,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hpexpireat(K key, long timestamp, K... fields); @@ -680,13 +680,13 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hpexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -697,10 +697,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hpexpireat(K key, Date timestamp, K... fields); @@ -709,13 +709,13 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hpexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -726,10 +726,10 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hpexpireat(K key, Instant timestamp, K... fields); @@ -738,13 +738,13 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ RedisFuture> hpexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -756,7 +756,7 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in * milliseconds; {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such * field - * @since 7.0 + * @since 6.4 */ RedisFuture> hpexpiretime(K key, K... fields); @@ -768,7 +768,7 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @return a list of {@link Long} values for each of the fields provided: the time to live in seconds; or a negative value * in order to signal an error. The command returns {@code -1} if the key exists but has no associated expiration * time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ RedisFuture> httl(K key, K... fields); @@ -780,7 +780,7 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @return a list of {@link Long} values for each of the fields provided: the time to live in milliseconds; or a negative * value in order to signal an error. The command returns {@code -1} if the key exists but has no associated * expiration time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ RedisFuture> hpttl(K key, K... fields); diff --git a/src/main/java/io/lettuce/core/api/async/RedisKeyAsyncCommands.java b/src/main/java/io/lettuce/core/api/async/RedisKeyAsyncCommands.java index cceffb8a71..078a4a57a7 100644 --- a/src/main/java/io/lettuce/core/api/async/RedisKeyAsyncCommands.java +++ b/src/main/java/io/lettuce/core/api/async/RedisKeyAsyncCommands.java @@ -107,7 +107,7 @@ public interface RedisKeyAsyncCommands { * * @param key the key. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -130,7 +130,7 @@ public interface RedisKeyAsyncCommands { * * @param key the key. * @param seconds the seconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -152,7 +152,7 @@ public interface RedisKeyAsyncCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -174,7 +174,7 @@ public interface RedisKeyAsyncCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -197,7 +197,7 @@ public interface RedisKeyAsyncCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -324,7 +324,7 @@ public interface RedisKeyAsyncCommands { * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -347,7 +347,7 @@ public interface RedisKeyAsyncCommands { * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -369,7 +369,7 @@ public interface RedisKeyAsyncCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -391,7 +391,7 @@ public interface RedisKeyAsyncCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -413,7 +413,7 @@ public interface RedisKeyAsyncCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 diff --git a/src/main/java/io/lettuce/core/api/async/RedisScriptingAsyncCommands.java b/src/main/java/io/lettuce/core/api/async/RedisScriptingAsyncCommands.java index 0158e92f78..2c56fa2cc7 100644 --- a/src/main/java/io/lettuce/core/api/async/RedisScriptingAsyncCommands.java +++ b/src/main/java/io/lettuce/core/api/async/RedisScriptingAsyncCommands.java @@ -94,7 +94,7 @@ public interface RedisScriptingAsyncCommands { * @param values the values. * @param expected return type. * @return script result. - * @since 7.0 + * @since 6.4 */ RedisFuture evalReadOnly(String script, ScriptOutputType type, K[] keys, V... values); diff --git a/src/main/java/io/lettuce/core/api/reactive/BaseRedisReactiveCommands.java b/src/main/java/io/lettuce/core/api/reactive/BaseRedisReactiveCommands.java index 43fd4ec538..b0d089b237 100644 --- a/src/main/java/io/lettuce/core/api/reactive/BaseRedisReactiveCommands.java +++ b/src/main/java/io/lettuce/core/api/reactive/BaseRedisReactiveCommands.java @@ -91,7 +91,7 @@ public interface BaseRedisReactiveCommands { * * @param shardChannels channel keys. * @return array-reply a list of channels and number of subscribers for every channel. - * @since 7.0 + * @since 6.4 */ Mono> pubsubShardNumsub(K... shardChannels); @@ -108,7 +108,7 @@ public interface BaseRedisReactiveCommands { * @param shardChannel the shard channel type: key. * @param message the message type: value. * @return Long integer-reply the number of clients that received the message. - * @since 7.0 + * @since 6.4 */ Mono spublish(K shardChannel, V message); diff --git a/src/main/java/io/lettuce/core/api/reactive/RedisHashReactiveCommands.java b/src/main/java/io/lettuce/core/api/reactive/RedisHashReactiveCommands.java index 6530b775b2..c0bc9f073d 100644 --- a/src/main/java/io/lettuce/core/api/reactive/RedisHashReactiveCommands.java +++ b/src/main/java/io/lettuce/core/api/reactive/RedisHashReactiveCommands.java @@ -233,7 +233,7 @@ public interface RedisHashReactiveCommands { * * @param key the key. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ Mono> hscanNovalues(K key); @@ -252,7 +252,7 @@ public interface RedisHashReactiveCommands { * @param key the key. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ Mono> hscanNovalues(K key, ScanArgs scanArgs); @@ -273,7 +273,7 @@ public interface RedisHashReactiveCommands { * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ Mono> hscanNovalues(K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -292,7 +292,7 @@ public interface RedisHashReactiveCommands { * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ Mono> hscanNovalues(K key, ScanCursor scanCursor); @@ -473,10 +473,10 @@ public interface RedisHashReactiveCommands { * @param seconds the seconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Flux hexpire(K key, long seconds, K... fields); @@ -485,13 +485,13 @@ public interface RedisHashReactiveCommands { * * @param key the key of the fields. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Flux hexpire(K key, long seconds, ExpireArgs expireArgs, K... fields); @@ -502,10 +502,10 @@ public interface RedisHashReactiveCommands { * @param seconds the TTL {@link Duration} * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Flux hexpire(K key, Duration seconds, K... fields); @@ -517,10 +517,10 @@ public interface RedisHashReactiveCommands { * @param expireArgs the {@link ExpireArgs}. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Flux hexpire(K key, Duration seconds, ExpireArgs expireArgs, K... fields); @@ -531,10 +531,10 @@ public interface RedisHashReactiveCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hexpireat(K key, long timestamp, K... fields); @@ -543,13 +543,13 @@ public interface RedisHashReactiveCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -560,10 +560,10 @@ public interface RedisHashReactiveCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hexpireat(K key, Date timestamp, K... fields); @@ -572,13 +572,13 @@ public interface RedisHashReactiveCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -589,10 +589,10 @@ public interface RedisHashReactiveCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hexpireat(K key, Instant timestamp, K... fields); @@ -601,13 +601,13 @@ public interface RedisHashReactiveCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -618,7 +618,7 @@ public interface RedisHashReactiveCommands { * @param fields one or more fields to get the TTL for. * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in seconds; * {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hexpiretime(K key, K... fields); @@ -629,7 +629,7 @@ public interface RedisHashReactiveCommands { * @param fields one or more fields to remove the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 1} indicating expiration time is removed; * {@code -1} field has no expiration time to be removed; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hpersist(K key, K... fields); @@ -640,10 +640,10 @@ public interface RedisHashReactiveCommands { * @param milliseconds the milliseconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Flux hpexpire(K key, long milliseconds, K... fields); @@ -652,13 +652,13 @@ public interface RedisHashReactiveCommands { * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Flux hpexpire(K key, long milliseconds, ExpireArgs expireArgs, K... fields); @@ -669,10 +669,10 @@ public interface RedisHashReactiveCommands { * @param milliseconds the milliseconds. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Flux hpexpire(K key, Duration milliseconds, K... fields); @@ -681,13 +681,13 @@ public interface RedisHashReactiveCommands { * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Flux hpexpire(K key, Duration milliseconds, ExpireArgs expireArgs, K... fields); @@ -698,10 +698,10 @@ public interface RedisHashReactiveCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hpexpireat(K key, long timestamp, K... fields); @@ -710,13 +710,13 @@ public interface RedisHashReactiveCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hpexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -727,10 +727,10 @@ public interface RedisHashReactiveCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hpexpireat(K key, Date timestamp, K... fields); @@ -739,13 +739,13 @@ public interface RedisHashReactiveCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hpexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -756,10 +756,10 @@ public interface RedisHashReactiveCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hpexpireat(K key, Instant timestamp, K... fields); @@ -768,13 +768,13 @@ public interface RedisHashReactiveCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Flux hpexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -786,7 +786,7 @@ public interface RedisHashReactiveCommands { * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in * milliseconds; {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such * field - * @since 7.0 + * @since 6.4 */ Flux hpexpiretime(K key, K... fields); @@ -798,7 +798,7 @@ public interface RedisHashReactiveCommands { * @return a list of {@link Long} values for each of the fields provided: the time to live in seconds; or a negative value * in order to signal an error. The command returns {@code -1} if the key exists but has no associated expiration * time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ Flux httl(K key, K... fields); @@ -810,7 +810,7 @@ public interface RedisHashReactiveCommands { * @return a list of {@link Long} values for each of the fields provided: the time to live in milliseconds; or a negative * value in order to signal an error. The command returns {@code -1} if the key exists but has no associated * expiration time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ Flux hpttl(K key, K... fields); diff --git a/src/main/java/io/lettuce/core/api/reactive/RedisKeyReactiveCommands.java b/src/main/java/io/lettuce/core/api/reactive/RedisKeyReactiveCommands.java index 1fbfdda1a8..e08654af88 100644 --- a/src/main/java/io/lettuce/core/api/reactive/RedisKeyReactiveCommands.java +++ b/src/main/java/io/lettuce/core/api/reactive/RedisKeyReactiveCommands.java @@ -117,7 +117,7 @@ public interface RedisKeyReactiveCommands { * * @param key the key. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -140,7 +140,7 @@ public interface RedisKeyReactiveCommands { * * @param key the key. * @param seconds the seconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -162,7 +162,7 @@ public interface RedisKeyReactiveCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -184,7 +184,7 @@ public interface RedisKeyReactiveCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -207,7 +207,7 @@ public interface RedisKeyReactiveCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -337,7 +337,7 @@ public interface RedisKeyReactiveCommands { * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -360,7 +360,7 @@ public interface RedisKeyReactiveCommands { * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -382,7 +382,7 @@ public interface RedisKeyReactiveCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -404,7 +404,7 @@ public interface RedisKeyReactiveCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -426,7 +426,7 @@ public interface RedisKeyReactiveCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 diff --git a/src/main/java/io/lettuce/core/api/reactive/RedisScriptingReactiveCommands.java b/src/main/java/io/lettuce/core/api/reactive/RedisScriptingReactiveCommands.java index 1d9d7917c6..30164f566c 100644 --- a/src/main/java/io/lettuce/core/api/reactive/RedisScriptingReactiveCommands.java +++ b/src/main/java/io/lettuce/core/api/reactive/RedisScriptingReactiveCommands.java @@ -93,7 +93,7 @@ public interface RedisScriptingReactiveCommands { * @param values the values. * @param expected return type. * @return script result. - * @since 7.0 + * @since 6.4 */ Flux evalReadOnly(String script, ScriptOutputType type, K[] keys, V... values); diff --git a/src/main/java/io/lettuce/core/api/sync/BaseRedisCommands.java b/src/main/java/io/lettuce/core/api/sync/BaseRedisCommands.java index 8082e84521..303469cbb9 100644 --- a/src/main/java/io/lettuce/core/api/sync/BaseRedisCommands.java +++ b/src/main/java/io/lettuce/core/api/sync/BaseRedisCommands.java @@ -90,7 +90,7 @@ public interface BaseRedisCommands { * * @param shardChannels channel keys. * @return array-reply a list of channels and number of subscribers for every channel. - * @since 7.0 + * @since 6.4 */ Map pubsubShardNumsub(K... shardChannels); @@ -107,7 +107,7 @@ public interface BaseRedisCommands { * @param shardChannel the shard channel type: key. * @param message the message type: value. * @return Long integer-reply the number of clients that received the message. - * @since 7.0 + * @since 6.4 */ Long spublish(K shardChannel, V message); diff --git a/src/main/java/io/lettuce/core/api/sync/RedisHashCommands.java b/src/main/java/io/lettuce/core/api/sync/RedisHashCommands.java index 6345f8593f..2d9f3ac313 100644 --- a/src/main/java/io/lettuce/core/api/sync/RedisHashCommands.java +++ b/src/main/java/io/lettuce/core/api/sync/RedisHashCommands.java @@ -223,7 +223,7 @@ public interface RedisHashCommands { * * @param key the key. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ KeyScanCursor hscanNovalues(K key); @@ -242,7 +242,7 @@ public interface RedisHashCommands { * @param key the key. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ KeyScanCursor hscanNovalues(K key, ScanArgs scanArgs); @@ -263,7 +263,7 @@ public interface RedisHashCommands { * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ KeyScanCursor hscanNovalues(K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -282,7 +282,7 @@ public interface RedisHashCommands { * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ KeyScanCursor hscanNovalues(K key, ScanCursor scanCursor); @@ -301,7 +301,7 @@ public interface RedisHashCommands { * @param channel streaming channel that receives a call for every key. * @param key the key. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ StreamScanCursor hscanNovalues(KeyStreamingChannel channel, K key); @@ -322,7 +322,7 @@ public interface RedisHashCommands { * @param key the key. * @param scanArgs scan arguments. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ StreamScanCursor hscanNovalues(KeyStreamingChannel channel, K key, ScanArgs scanArgs); @@ -345,7 +345,7 @@ public interface RedisHashCommands { * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ StreamScanCursor hscanNovalues(KeyStreamingChannel channel, K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -366,7 +366,7 @@ public interface RedisHashCommands { * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ StreamScanCursor hscanNovalues(KeyStreamingChannel channel, K key, ScanCursor scanCursor); @@ -440,10 +440,10 @@ public interface RedisHashCommands { * @param seconds the seconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hexpire(K key, long seconds, K... fields); @@ -452,13 +452,13 @@ public interface RedisHashCommands { * * @param key the key of the fields. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hexpire(K key, long seconds, ExpireArgs expireArgs, K... fields); @@ -469,10 +469,10 @@ public interface RedisHashCommands { * @param seconds the TTL {@link Duration} * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hexpire(K key, Duration seconds, K... fields); @@ -484,10 +484,10 @@ public interface RedisHashCommands { * @param expireArgs the {@link ExpireArgs}. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hexpire(K key, Duration seconds, ExpireArgs expireArgs, K... fields); @@ -498,10 +498,10 @@ public interface RedisHashCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, long timestamp, K... fields); @@ -510,13 +510,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -527,10 +527,10 @@ public interface RedisHashCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, Date timestamp, K... fields); @@ -539,13 +539,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -556,10 +556,10 @@ public interface RedisHashCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, Instant timestamp, K... fields); @@ -568,13 +568,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -585,7 +585,7 @@ public interface RedisHashCommands { * @param fields one or more fields to get the TTL for. * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in seconds; * {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpiretime(K key, K... fields); @@ -596,7 +596,7 @@ public interface RedisHashCommands { * @param fields one or more fields to remove the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 1} indicating expiration time is removed; * {@code -1} field has no expiration time to be removed; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpersist(K key, K... fields); @@ -607,10 +607,10 @@ public interface RedisHashCommands { * @param milliseconds the milliseconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hpexpire(K key, long milliseconds, K... fields); @@ -619,13 +619,13 @@ public interface RedisHashCommands { * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hpexpire(K key, long milliseconds, ExpireArgs expireArgs, K... fields); @@ -636,10 +636,10 @@ public interface RedisHashCommands { * @param milliseconds the milliseconds. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hpexpire(K key, Duration milliseconds, K... fields); @@ -648,13 +648,13 @@ public interface RedisHashCommands { * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hpexpire(K key, Duration milliseconds, ExpireArgs expireArgs, K... fields); @@ -665,10 +665,10 @@ public interface RedisHashCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, long timestamp, K... fields); @@ -677,13 +677,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -694,10 +694,10 @@ public interface RedisHashCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, Date timestamp, K... fields); @@ -706,13 +706,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -723,10 +723,10 @@ public interface RedisHashCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, Instant timestamp, K... fields); @@ -735,13 +735,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -753,7 +753,7 @@ public interface RedisHashCommands { * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in * milliseconds; {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such * field - * @since 7.0 + * @since 6.4 */ List hpexpiretime(K key, K... fields); @@ -765,7 +765,7 @@ public interface RedisHashCommands { * @return a list of {@link Long} values for each of the fields provided: the time to live in seconds; or a negative value * in order to signal an error. The command returns {@code -1} if the key exists but has no associated expiration * time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ List httl(K key, K... fields); @@ -777,7 +777,7 @@ public interface RedisHashCommands { * @return a list of {@link Long} values for each of the fields provided: the time to live in milliseconds; or a negative * value in order to signal an error. The command returns {@code -1} if the key exists but has no associated * expiration time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ List hpttl(K key, K... fields); diff --git a/src/main/java/io/lettuce/core/api/sync/RedisKeyCommands.java b/src/main/java/io/lettuce/core/api/sync/RedisKeyCommands.java index 516e4ab072..c806730e75 100644 --- a/src/main/java/io/lettuce/core/api/sync/RedisKeyCommands.java +++ b/src/main/java/io/lettuce/core/api/sync/RedisKeyCommands.java @@ -116,7 +116,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -139,7 +139,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param seconds the seconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -161,7 +161,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -183,7 +183,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -206,7 +206,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -333,7 +333,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -356,7 +356,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -378,7 +378,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -400,7 +400,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -422,7 +422,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 diff --git a/src/main/java/io/lettuce/core/api/sync/RedisScriptingCommands.java b/src/main/java/io/lettuce/core/api/sync/RedisScriptingCommands.java index d6161251e5..48da2c9c81 100644 --- a/src/main/java/io/lettuce/core/api/sync/RedisScriptingCommands.java +++ b/src/main/java/io/lettuce/core/api/sync/RedisScriptingCommands.java @@ -93,7 +93,7 @@ public interface RedisScriptingCommands { * @param values the values. * @param expected return type. * @return script result. - * @since 7.0 + * @since 6.4 */ T evalReadOnly(String script, ScriptOutputType type, K[] keys, V... values); diff --git a/src/main/java/io/lettuce/core/cluster/api/async/BaseNodeSelectionAsyncCommands.java b/src/main/java/io/lettuce/core/cluster/api/async/BaseNodeSelectionAsyncCommands.java index 795a3f0848..ac58de80af 100644 --- a/src/main/java/io/lettuce/core/cluster/api/async/BaseNodeSelectionAsyncCommands.java +++ b/src/main/java/io/lettuce/core/cluster/api/async/BaseNodeSelectionAsyncCommands.java @@ -91,7 +91,7 @@ public interface BaseNodeSelectionAsyncCommands { * * @param shardChannels channel keys. * @return array-reply a list of channels and number of subscribers for every channel. - * @since 7.0 + * @since 6.4 */ AsyncExecutions> pubsubShardNumsub(K... shardChannels); @@ -108,7 +108,7 @@ public interface BaseNodeSelectionAsyncCommands { * @param shardChannel the shard channel type: key. * @param message the message type: value. * @return Long integer-reply the number of clients that received the message. - * @since 7.0 + * @since 6.4 */ AsyncExecutions spublish(K shardChannel, V message); diff --git a/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionHashAsyncCommands.java b/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionHashAsyncCommands.java index 3dbf6b2af6..f6e733034f 100644 --- a/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionHashAsyncCommands.java +++ b/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionHashAsyncCommands.java @@ -223,7 +223,7 @@ public interface NodeSelectionHashAsyncCommands { * * @param key the key. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hscanNovalues(K key); @@ -242,7 +242,7 @@ public interface NodeSelectionHashAsyncCommands { * @param key the key. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hscanNovalues(K key, ScanArgs scanArgs); @@ -263,7 +263,7 @@ public interface NodeSelectionHashAsyncCommands { * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hscanNovalues(K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -282,7 +282,7 @@ public interface NodeSelectionHashAsyncCommands { * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hscanNovalues(K key, ScanCursor scanCursor); @@ -301,7 +301,7 @@ public interface NodeSelectionHashAsyncCommands { * @param channel streaming channel that receives a call for every key. * @param key the key. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, K key); @@ -322,7 +322,7 @@ public interface NodeSelectionHashAsyncCommands { * @param key the key. * @param scanArgs scan arguments. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, K key, ScanArgs scanArgs); @@ -346,7 +346,7 @@ AsyncExecutions hscan(KeyValueStreamingChannel channel, * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -368,7 +368,7 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, K key, ScanCursor scanCursor); @@ -442,10 +442,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param seconds the seconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ AsyncExecutions> hexpire(K key, long seconds, K... fields); @@ -454,13 +454,13 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * * @param key the key of the fields. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ AsyncExecutions> hexpire(K key, long seconds, ExpireArgs expireArgs, K... fields); @@ -471,10 +471,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param seconds the TTL {@link Duration} * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ AsyncExecutions> hexpire(K key, Duration seconds, K... fields); @@ -486,10 +486,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param expireArgs the {@link ExpireArgs}. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ AsyncExecutions> hexpire(K key, Duration seconds, ExpireArgs expireArgs, K... fields); @@ -500,10 +500,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hexpireat(K key, long timestamp, K... fields); @@ -512,13 +512,13 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -529,10 +529,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hexpireat(K key, Date timestamp, K... fields); @@ -541,13 +541,13 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -558,10 +558,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hexpireat(K key, Instant timestamp, K... fields); @@ -570,13 +570,13 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -587,7 +587,7 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param fields one or more fields to get the TTL for. * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in seconds; * {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hexpiretime(K key, K... fields); @@ -598,7 +598,7 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param fields one or more fields to remove the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 1} indicating expiration time is removed; * {@code -1} field has no expiration time to be removed; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hpersist(K key, K... fields); @@ -609,10 +609,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param milliseconds the milliseconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ AsyncExecutions> hpexpire(K key, long milliseconds, K... fields); @@ -621,13 +621,13 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ AsyncExecutions> hpexpire(K key, long milliseconds, ExpireArgs expireArgs, K... fields); @@ -638,10 +638,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param milliseconds the milliseconds. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ AsyncExecutions> hpexpire(K key, Duration milliseconds, K... fields); @@ -650,13 +650,13 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ AsyncExecutions> hpexpire(K key, Duration milliseconds, ExpireArgs expireArgs, K... fields); @@ -667,10 +667,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hpexpireat(K key, long timestamp, K... fields); @@ -679,13 +679,13 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hpexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -696,10 +696,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hpexpireat(K key, Date timestamp, K... fields); @@ -708,13 +708,13 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hpexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -725,10 +725,10 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hpexpireat(K key, Instant timestamp, K... fields); @@ -737,13 +737,13 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hpexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -755,7 +755,7 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in * milliseconds; {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such * field - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hpexpiretime(K key, K... fields); @@ -767,7 +767,7 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @return a list of {@link Long} values for each of the fields provided: the time to live in seconds; or a negative value * in order to signal an error. The command returns {@code -1} if the key exists but has no associated expiration * time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ AsyncExecutions> httl(K key, K... fields); @@ -779,7 +779,7 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @return a list of {@link Long} values for each of the fields provided: the time to live in milliseconds; or a negative * value in order to signal an error. The command returns {@code -1} if the key exists but has no associated * expiration time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ AsyncExecutions> hpttl(K key, K... fields); diff --git a/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionKeyAsyncCommands.java b/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionKeyAsyncCommands.java index 44bbd168a3..29cf0464b1 100644 --- a/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionKeyAsyncCommands.java +++ b/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionKeyAsyncCommands.java @@ -116,7 +116,7 @@ public interface NodeSelectionKeyAsyncCommands { * * @param key the key. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -139,7 +139,7 @@ public interface NodeSelectionKeyAsyncCommands { * * @param key the key. * @param seconds the seconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -161,7 +161,7 @@ public interface NodeSelectionKeyAsyncCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -183,7 +183,7 @@ public interface NodeSelectionKeyAsyncCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -206,7 +206,7 @@ public interface NodeSelectionKeyAsyncCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -333,7 +333,7 @@ public interface NodeSelectionKeyAsyncCommands { * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -356,7 +356,7 @@ public interface NodeSelectionKeyAsyncCommands { * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -378,7 +378,7 @@ public interface NodeSelectionKeyAsyncCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -400,7 +400,7 @@ public interface NodeSelectionKeyAsyncCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -422,7 +422,7 @@ public interface NodeSelectionKeyAsyncCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 diff --git a/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionScriptingAsyncCommands.java b/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionScriptingAsyncCommands.java index df0b551786..bf3daca58f 100644 --- a/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionScriptingAsyncCommands.java +++ b/src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionScriptingAsyncCommands.java @@ -93,7 +93,7 @@ public interface NodeSelectionScriptingAsyncCommands { * @param values the values. * @param expected return type. * @return script result. - * @since 7.0 + * @since 6.4 */ AsyncExecutions evalReadOnly(String script, ScriptOutputType type, K[] keys, V... values); diff --git a/src/main/java/io/lettuce/core/cluster/api/sync/BaseNodeSelectionCommands.java b/src/main/java/io/lettuce/core/cluster/api/sync/BaseNodeSelectionCommands.java index d82031aa5d..9b7978f499 100644 --- a/src/main/java/io/lettuce/core/cluster/api/sync/BaseNodeSelectionCommands.java +++ b/src/main/java/io/lettuce/core/cluster/api/sync/BaseNodeSelectionCommands.java @@ -86,7 +86,7 @@ public interface BaseNodeSelectionCommands { * * @param shardChannels channel keys. * @return array-reply a list of channels and number of subscribers for every channel. - * @since 7.0 + * @since 6.4 */ Executions> pubsubShardNumsub(K... shardChannels); @@ -103,7 +103,7 @@ public interface BaseNodeSelectionCommands { * @param shardChannel the shard channel type: key. * @param message the message type: value. * @return Long integer-reply the number of clients that received the message. - * @since 7.0 + * @since 6.4 */ Executions spublish(K shardChannel, V message); diff --git a/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionHashCommands.java b/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionHashCommands.java index ee344d1180..05cf792d92 100644 --- a/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionHashCommands.java +++ b/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionHashCommands.java @@ -223,7 +223,7 @@ public interface NodeSelectionHashCommands { * * @param key the key. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ Executions> hscanNovalues(K key); @@ -242,7 +242,7 @@ public interface NodeSelectionHashCommands { * @param key the key. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ Executions> hscanNovalues(K key, ScanArgs scanArgs); @@ -263,7 +263,7 @@ public interface NodeSelectionHashCommands { * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ Executions> hscanNovalues(K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -282,7 +282,7 @@ public interface NodeSelectionHashCommands { * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ Executions> hscanNovalues(K key, ScanCursor scanCursor); @@ -301,7 +301,7 @@ public interface NodeSelectionHashCommands { * @param channel streaming channel that receives a call for every key. * @param key the key. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ Executions hscanNovalues(KeyStreamingChannel channel, K key); @@ -322,7 +322,7 @@ public interface NodeSelectionHashCommands { * @param key the key. * @param scanArgs scan arguments. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ Executions hscanNovalues(KeyStreamingChannel channel, K key, ScanArgs scanArgs); @@ -345,7 +345,7 @@ public interface NodeSelectionHashCommands { * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ Executions hscanNovalues(KeyStreamingChannel channel, K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -366,7 +366,7 @@ public interface NodeSelectionHashCommands { * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ Executions hscanNovalues(KeyStreamingChannel channel, K key, ScanCursor scanCursor); @@ -440,10 +440,10 @@ public interface NodeSelectionHashCommands { * @param seconds the seconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Executions> hexpire(K key, long seconds, K... fields); @@ -452,13 +452,13 @@ public interface NodeSelectionHashCommands { * * @param key the key of the fields. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Executions> hexpire(K key, long seconds, ExpireArgs expireArgs, K... fields); @@ -469,10 +469,10 @@ public interface NodeSelectionHashCommands { * @param seconds the TTL {@link Duration} * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Executions> hexpire(K key, Duration seconds, K... fields); @@ -484,10 +484,10 @@ public interface NodeSelectionHashCommands { * @param expireArgs the {@link ExpireArgs}. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Executions> hexpire(K key, Duration seconds, ExpireArgs expireArgs, K... fields); @@ -498,10 +498,10 @@ public interface NodeSelectionHashCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hexpireat(K key, long timestamp, K... fields); @@ -510,13 +510,13 @@ public interface NodeSelectionHashCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -527,10 +527,10 @@ public interface NodeSelectionHashCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hexpireat(K key, Date timestamp, K... fields); @@ -539,13 +539,13 @@ public interface NodeSelectionHashCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -556,10 +556,10 @@ public interface NodeSelectionHashCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hexpireat(K key, Instant timestamp, K... fields); @@ -568,13 +568,13 @@ public interface NodeSelectionHashCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -585,7 +585,7 @@ public interface NodeSelectionHashCommands { * @param fields one or more fields to get the TTL for. * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in seconds; * {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hexpiretime(K key, K... fields); @@ -596,7 +596,7 @@ public interface NodeSelectionHashCommands { * @param fields one or more fields to remove the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 1} indicating expiration time is removed; * {@code -1} field has no expiration time to be removed; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hpersist(K key, K... fields); @@ -607,10 +607,10 @@ public interface NodeSelectionHashCommands { * @param milliseconds the milliseconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Executions> hpexpire(K key, long milliseconds, K... fields); @@ -619,13 +619,13 @@ public interface NodeSelectionHashCommands { * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Executions> hpexpire(K key, long milliseconds, ExpireArgs expireArgs, K... fields); @@ -636,10 +636,10 @@ public interface NodeSelectionHashCommands { * @param milliseconds the milliseconds. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Executions> hpexpire(K key, Duration milliseconds, K... fields); @@ -648,13 +648,13 @@ public interface NodeSelectionHashCommands { * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ Executions> hpexpire(K key, Duration milliseconds, ExpireArgs expireArgs, K... fields); @@ -665,10 +665,10 @@ public interface NodeSelectionHashCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hpexpireat(K key, long timestamp, K... fields); @@ -677,13 +677,13 @@ public interface NodeSelectionHashCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hpexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -694,10 +694,10 @@ public interface NodeSelectionHashCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hpexpireat(K key, Date timestamp, K... fields); @@ -706,13 +706,13 @@ public interface NodeSelectionHashCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hpexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -723,10 +723,10 @@ public interface NodeSelectionHashCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hpexpireat(K key, Instant timestamp, K... fields); @@ -735,13 +735,13 @@ public interface NodeSelectionHashCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ Executions> hpexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -753,7 +753,7 @@ public interface NodeSelectionHashCommands { * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in * milliseconds; {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such * field - * @since 7.0 + * @since 6.4 */ Executions> hpexpiretime(K key, K... fields); @@ -765,7 +765,7 @@ public interface NodeSelectionHashCommands { * @return a list of {@link Long} values for each of the fields provided: the time to live in seconds; or a negative value * in order to signal an error. The command returns {@code -1} if the key exists but has no associated expiration * time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ Executions> httl(K key, K... fields); @@ -777,7 +777,7 @@ public interface NodeSelectionHashCommands { * @return a list of {@link Long} values for each of the fields provided: the time to live in milliseconds; or a negative * value in order to signal an error. The command returns {@code -1} if the key exists but has no associated * expiration time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ Executions> hpttl(K key, K... fields); diff --git a/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionKeyCommands.java b/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionKeyCommands.java index d09dd4f39a..22cb374a78 100644 --- a/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionKeyCommands.java +++ b/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionKeyCommands.java @@ -116,7 +116,7 @@ public interface NodeSelectionKeyCommands { * * @param key the key. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -139,7 +139,7 @@ public interface NodeSelectionKeyCommands { * * @param key the key. * @param seconds the seconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -161,7 +161,7 @@ public interface NodeSelectionKeyCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -183,7 +183,7 @@ public interface NodeSelectionKeyCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -206,7 +206,7 @@ public interface NodeSelectionKeyCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -333,7 +333,7 @@ public interface NodeSelectionKeyCommands { * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -356,7 +356,7 @@ public interface NodeSelectionKeyCommands { * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -378,7 +378,7 @@ public interface NodeSelectionKeyCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -400,7 +400,7 @@ public interface NodeSelectionKeyCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -422,7 +422,7 @@ public interface NodeSelectionKeyCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 diff --git a/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionScriptingCommands.java b/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionScriptingCommands.java index b7b40351b2..9a921d18d0 100644 --- a/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionScriptingCommands.java +++ b/src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionScriptingCommands.java @@ -93,7 +93,7 @@ public interface NodeSelectionScriptingCommands { * @param values the values. * @param expected return type. * @return script result. - * @since 7.0 + * @since 6.4 */ Executions evalReadOnly(String script, ScriptOutputType type, K[] keys, V... values); diff --git a/src/main/java/io/lettuce/core/cluster/pubsub/RedisClusterPubSubListener.java b/src/main/java/io/lettuce/core/cluster/pubsub/RedisClusterPubSubListener.java index b1755f80b9..b2ec3cc5ff 100644 --- a/src/main/java/io/lettuce/core/cluster/pubsub/RedisClusterPubSubListener.java +++ b/src/main/java/io/lettuce/core/cluster/pubsub/RedisClusterPubSubListener.java @@ -73,7 +73,7 @@ public interface RedisClusterPubSubListener { * @param node the {@link RedisClusterNode} from which the {@code message} originates. * @param shardChannel shard channel. * @param message Message. - * @since 7.0 + * @since 6.4 */ default void smessage(RedisClusterNode node, K shardChannel, V message) { message(node, shardChannel, message); @@ -85,7 +85,7 @@ default void smessage(RedisClusterNode node, K shardChannel, V message) { * @param node the {@link RedisClusterNode} from which the {@code message} originates. * @param shardChannel Shard channel * @param count Subscription count. - * @since 7.0 + * @since 6.4 */ default void ssubscribed(RedisClusterNode node, K shardChannel, long count) { subscribed(node, shardChannel, count); @@ -97,7 +97,7 @@ default void ssubscribed(RedisClusterNode node, K shardChannel, long count) { * @param node the {@link RedisClusterNode} from which the {@code message} originates. * @param shardChannel Shard channel * @param count Subscription count. - * @since 7.0 + * @since 6.4 */ default void sunsubscribed(RedisClusterNode node, K shardChannel, long count) { unsubscribed(node, shardChannel, count); diff --git a/src/main/java/io/lettuce/core/cluster/pubsub/api/async/NodeSelectionPubSubAsyncCommands.java b/src/main/java/io/lettuce/core/cluster/pubsub/api/async/NodeSelectionPubSubAsyncCommands.java index 19f1980e01..9da3ce0b99 100644 --- a/src/main/java/io/lettuce/core/cluster/pubsub/api/async/NodeSelectionPubSubAsyncCommands.java +++ b/src/main/java/io/lettuce/core/cluster/pubsub/api/async/NodeSelectionPubSubAsyncCommands.java @@ -47,7 +47,7 @@ public interface NodeSelectionPubSubAsyncCommands { * * @param shardChannels the channels * @return RedisFuture<Void> Future to synchronize {@code subscribe} completion - * @since 7.0 + * @since 6.4 */ AsyncExecutions ssubscribe(K... shardChannels); @@ -56,7 +56,7 @@ public interface NodeSelectionPubSubAsyncCommands { * * @param shardChannels the channels * @return RedisFuture<Void> Future to synchronize {@code unsubscribe} completion. - * @since 7.0 + * @since 6.4 */ AsyncExecutions sunsubscribe(K... shardChannels); diff --git a/src/main/java/io/lettuce/core/cluster/pubsub/api/reactive/NodeSelectionPubSubReactiveCommands.java b/src/main/java/io/lettuce/core/cluster/pubsub/api/reactive/NodeSelectionPubSubReactiveCommands.java index 3da91dddd1..fd0582f409 100644 --- a/src/main/java/io/lettuce/core/cluster/pubsub/api/reactive/NodeSelectionPubSubReactiveCommands.java +++ b/src/main/java/io/lettuce/core/cluster/pubsub/api/reactive/NodeSelectionPubSubReactiveCommands.java @@ -47,7 +47,7 @@ public interface NodeSelectionPubSubReactiveCommands { * * @param shardCchannels the channels * @return RedisFuture<Void> Future to synchronize {@code subscribe} completion - * @since 7.0 + * @since 6.4 */ ReactiveExecutions ssubscribe(K... shardCchannels); @@ -56,7 +56,7 @@ public interface NodeSelectionPubSubReactiveCommands { * * @param shardCchannels the channels * @return RedisFuture<Void> Future to synchronize {@code unsubscribe} completion. - * @since 7.0 + * @since 6.4 */ ReactiveExecutions sunsubscribe(K... shardCchannels); diff --git a/src/main/java/io/lettuce/core/cluster/pubsub/api/sync/NodeSelectionPubSubCommands.java b/src/main/java/io/lettuce/core/cluster/pubsub/api/sync/NodeSelectionPubSubCommands.java index 6a3716c9fc..ee107c24a5 100644 --- a/src/main/java/io/lettuce/core/cluster/pubsub/api/sync/NodeSelectionPubSubCommands.java +++ b/src/main/java/io/lettuce/core/cluster/pubsub/api/sync/NodeSelectionPubSubCommands.java @@ -47,7 +47,7 @@ public interface NodeSelectionPubSubCommands { * * @param shardChannels the channels * @return Executions Future to synchronize {@code subscribe} completion - * @since 7.0 + * @since 6.4 */ Executions ssubscribe(K... shardChannels); @@ -56,7 +56,7 @@ public interface NodeSelectionPubSubCommands { * * @param shardChannels the channels * @return Executions Future to synchronize {@code unsubscribe} completion. - * @since 7.0 + * @since 6.4 */ Executions sunsubscribe(K... shardChannels); diff --git a/src/main/java/io/lettuce/core/pubsub/RedisPubSubListener.java b/src/main/java/io/lettuce/core/pubsub/RedisPubSubListener.java index ae0aff2e4a..ef8c2ba6a2 100644 --- a/src/main/java/io/lettuce/core/pubsub/RedisPubSubListener.java +++ b/src/main/java/io/lettuce/core/pubsub/RedisPubSubListener.java @@ -82,7 +82,7 @@ public interface RedisPubSubListener { * * @param shardChannel Shard channel * @param count Subscription count. - * @since 7.0 + * @since 6.4 */ default void ssubscribed(K shardChannel, long count) { subscribed(shardChannel, count); @@ -93,7 +93,7 @@ default void ssubscribed(K shardChannel, long count) { * * @param shardChannel Channel * @param count Subscription count. - * @since 7.0 + * @since 6.4 */ default void sunsubscribed(K shardChannel, long count) { unsubscribed(shardChannel, count); @@ -104,7 +104,7 @@ default void sunsubscribed(K shardChannel, long count) { * * @param shardChannel shard channel. * @param message Message. - * @since 7.0 + * @since 6.4 */ default void smessage(K shardChannel, V message) { message(shardChannel, message); diff --git a/src/main/java/io/lettuce/core/pubsub/api/async/RedisPubSubAsyncCommands.java b/src/main/java/io/lettuce/core/pubsub/api/async/RedisPubSubAsyncCommands.java index 8750588552..5e680e7f61 100644 --- a/src/main/java/io/lettuce/core/pubsub/api/async/RedisPubSubAsyncCommands.java +++ b/src/main/java/io/lettuce/core/pubsub/api/async/RedisPubSubAsyncCommands.java @@ -56,7 +56,7 @@ public interface RedisPubSubAsyncCommands extends RedisAsyncCommands * * @param shardChannels the shard channels * @return RedisFuture<Void> Future to synchronize {@code subscribe} completion - * @since 7.0 + * @since 6.4 */ RedisFuture ssubscribe(K... shardChannels); @@ -65,7 +65,7 @@ public interface RedisPubSubAsyncCommands extends RedisAsyncCommands * * @param shardChannels the shard channels * @return RedisFuture<Void> Future to synchronize {@code unsubscribe} completion. - * @since 7.0 + * @since 6.4 */ RedisFuture sunsubscribe(K... shardChannels); diff --git a/src/main/java/io/lettuce/core/pubsub/api/reactive/RedisPubSubReactiveCommands.java b/src/main/java/io/lettuce/core/pubsub/api/reactive/RedisPubSubReactiveCommands.java index 6f1f0e0817..6bcf7848a2 100644 --- a/src/main/java/io/lettuce/core/pubsub/api/reactive/RedisPubSubReactiveCommands.java +++ b/src/main/java/io/lettuce/core/pubsub/api/reactive/RedisPubSubReactiveCommands.java @@ -103,7 +103,7 @@ public interface RedisPubSubReactiveCommands extends RedisReactiveCommands * * @param shardChannels the channels. * @return Mono<Void> Mono for {@code subscribe} command. - * @since 7.0 + * @since 6.4 */ Mono ssubscribe(K... shardChannels); @@ -113,7 +113,7 @@ public interface RedisPubSubReactiveCommands extends RedisReactiveCommands * * @param shardChannels the channels. * @return Mono<Void> Mono for {@code unsubscribe} command. - * @since 7.0 + * @since 6.4 */ Mono sunsubscribe(K... shardChannels); diff --git a/src/main/java/io/lettuce/core/pubsub/api/sync/RedisPubSubCommands.java b/src/main/java/io/lettuce/core/pubsub/api/sync/RedisPubSubCommands.java index b3ea69fb62..d7d186280e 100644 --- a/src/main/java/io/lettuce/core/pubsub/api/sync/RedisPubSubCommands.java +++ b/src/main/java/io/lettuce/core/pubsub/api/sync/RedisPubSubCommands.java @@ -45,7 +45,7 @@ public interface RedisPubSubCommands extends RedisCommands { * Listen for messages published to the given shard channels. * * @param shardChannels the channels - * @since 7.0 + * @since 6.4 */ void ssubscribe(K... shardChannels); @@ -53,7 +53,7 @@ public interface RedisPubSubCommands extends RedisCommands { * Stop listening for messages posted to the given channels. * * @param shardChannels the channels - * @since 7.0 + * @since 6.4 */ void sunsubscribe(K... shardChannels); diff --git a/src/main/templates/io/lettuce/core/api/BaseRedisCommands.java b/src/main/templates/io/lettuce/core/api/BaseRedisCommands.java index 3fa6f26e4a..744f9ea47c 100644 --- a/src/main/templates/io/lettuce/core/api/BaseRedisCommands.java +++ b/src/main/templates/io/lettuce/core/api/BaseRedisCommands.java @@ -91,7 +91,7 @@ public interface BaseRedisCommands { * * @param shardChannels channel keys. * @return array-reply a list of channels and number of subscribers for every channel. - * @since 7.0 + * @since 6.4 */ Map pubsubShardNumsub(K... shardChannels); @@ -108,7 +108,7 @@ public interface BaseRedisCommands { * @param shardChannel the shard channel type: key. * @param message the message type: value. * @return Long integer-reply the number of clients that received the message. - * @since 7.0 + * @since 6.4 */ Long spublish(K shardChannel, V message); diff --git a/src/main/templates/io/lettuce/core/api/RedisHashCommands.java b/src/main/templates/io/lettuce/core/api/RedisHashCommands.java index 4d44cc2979..ac05591741 100644 --- a/src/main/templates/io/lettuce/core/api/RedisHashCommands.java +++ b/src/main/templates/io/lettuce/core/api/RedisHashCommands.java @@ -218,7 +218,7 @@ public interface RedisHashCommands { * * @param key the key. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ KeyScanCursor hscanNovalues(K key); @@ -237,7 +237,7 @@ public interface RedisHashCommands { * @param key the key. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ KeyScanCursor hscanNovalues(K key, ScanArgs scanArgs); @@ -258,7 +258,7 @@ public interface RedisHashCommands { * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ KeyScanCursor hscanNovalues(K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -277,7 +277,7 @@ public interface RedisHashCommands { * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return KeyScanCursor<K> key scan cursor. - * @since 7.0 + * @since 6.4 */ KeyScanCursor hscanNovalues(K key, ScanCursor scanCursor); @@ -296,7 +296,7 @@ public interface RedisHashCommands { * @param channel streaming channel that receives a call for every key. * @param key the key. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ StreamScanCursor hscanNovalues(KeyStreamingChannel channel, K key); @@ -317,7 +317,7 @@ public interface RedisHashCommands { * @param key the key. * @param scanArgs scan arguments. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ StreamScanCursor hscanNovalues(KeyStreamingChannel channel, K key, ScanArgs scanArgs); @@ -340,7 +340,7 @@ public interface RedisHashCommands { * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @param scanArgs scan arguments. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ StreamScanCursor hscanNovalues(KeyStreamingChannel channel, K key, ScanCursor scanCursor, ScanArgs scanArgs); @@ -361,7 +361,7 @@ public interface RedisHashCommands { * @param key the key. * @param scanCursor cursor to resume from a previous scan, must not be {@code null}. * @return StreamScanCursor scan cursor. - * @since 7.0 + * @since 6.4 */ StreamScanCursor hscanNovalues(KeyStreamingChannel channel, K key, ScanCursor scanCursor); @@ -435,10 +435,10 @@ public interface RedisHashCommands { * @param seconds the seconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hexpire(K key, long seconds, K... fields); @@ -447,13 +447,13 @@ public interface RedisHashCommands { * * @param key the key of the fields. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hexpire(K key, long seconds, ExpireArgs expireArgs, K... fields); @@ -464,10 +464,10 @@ public interface RedisHashCommands { * @param seconds the TTL {@link Duration} * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hexpire(K key, Duration seconds, K... fields); @@ -479,10 +479,10 @@ public interface RedisHashCommands { * @param expireArgs the {@link ExpireArgs}. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hexpire(K key, Duration seconds, ExpireArgs expireArgs, K... fields); @@ -493,10 +493,10 @@ public interface RedisHashCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, long timestamp, K... fields); @@ -505,13 +505,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -522,10 +522,10 @@ public interface RedisHashCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, Date timestamp, K... fields); @@ -534,13 +534,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -551,10 +551,10 @@ public interface RedisHashCommands { * @param timestamp the timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, Instant timestamp, K... fields); @@ -563,13 +563,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -580,7 +580,7 @@ public interface RedisHashCommands { * @param fields one or more fields to get the TTL for. * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in seconds; * {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hexpiretime(K key, K... fields); @@ -591,7 +591,7 @@ public interface RedisHashCommands { * @param fields one or more fields to remove the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 1} indicating expiration time is removed; * {@code -1} field has no expiration time to be removed; {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpersist(K key, K... fields); @@ -602,10 +602,10 @@ public interface RedisHashCommands { * @param milliseconds the milliseconds type: long. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hpexpire(K key, long milliseconds, K... fields); @@ -614,13 +614,13 @@ public interface RedisHashCommands { * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hpexpire(K key, long milliseconds, ExpireArgs expireArgs, K... fields); @@ -631,10 +631,10 @@ public interface RedisHashCommands { * @param milliseconds the milliseconds. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hpexpire(K key, Duration milliseconds, K... fields); @@ -643,13 +643,13 @@ public interface RedisHashCommands { * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is 0; {@code 1} indicating expiration time is - * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not - * met); {@code -2} indicating there is no such field - * @since 7.0 + * already due to expiration, or provided expiry interval is 0; {@code 1} indicating expiration time is set/updated; + * {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); + * {@code -2} indicating there is no such field + * @since 6.4 */ List hpexpire(K key, Duration milliseconds, ExpireArgs expireArgs, K... fields); @@ -660,10 +660,10 @@ public interface RedisHashCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, long timestamp, K... fields); @@ -672,13 +672,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields); @@ -689,10 +689,10 @@ public interface RedisHashCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, Date timestamp, K... fields); @@ -701,13 +701,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields); @@ -718,10 +718,10 @@ public interface RedisHashCommands { * @param timestamp the milliseconds-timestamp type: posix time. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, Instant timestamp, K... fields); @@ -730,13 +730,13 @@ public interface RedisHashCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @param fields one or more fields to set the TTL for. * @return a list of {@link Long} values for each of the fields provided: {@code 2} indicating the specific field is deleted - * already due to expiration, or provided expriry interval is in the past; {@code 1} indicating expiration time is + * already due to expiration, or provided expiry interval is in the past; {@code 1} indicating expiration time is * set/updated; {@code 0} indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not * met); {@code -2} indicating there is no such field - * @since 7.0 + * @since 6.4 */ List hpexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields); @@ -748,7 +748,7 @@ public interface RedisHashCommands { * @return a list of {@link Long} values for each of the fields provided: expiration time as a UNIX timestamp in * milliseconds; {@code -1} indicating the field has no expiry time set; {@code -2} indicating there is no such * field - * @since 7.0 + * @since 6.4 */ List hpexpiretime(K key, K... fields); @@ -760,7 +760,7 @@ public interface RedisHashCommands { * @return a list of {@link Long} values for each of the fields provided: the time to live in seconds; or a negative value * in order to signal an error. The command returns {@code -1} if the key exists but has no associated expiration * time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ List httl(K key, K... fields); @@ -772,7 +772,7 @@ public interface RedisHashCommands { * @return a list of {@link Long} values for each of the fields provided: the time to live in milliseconds; or a negative * value in order to signal an error. The command returns {@code -1} if the key exists but has no associated * expiration time. The command returns {@code -2} if the key does not exist. - * @since 7.0 + * @since 6.4 */ List hpttl(K key, K... fields); diff --git a/src/main/templates/io/lettuce/core/api/RedisKeyCommands.java b/src/main/templates/io/lettuce/core/api/RedisKeyCommands.java index bdd3568991..602b0442ad 100644 --- a/src/main/templates/io/lettuce/core/api/RedisKeyCommands.java +++ b/src/main/templates/io/lettuce/core/api/RedisKeyCommands.java @@ -108,7 +108,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param seconds the seconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -131,7 +131,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param seconds the seconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set. * @since 6.2 @@ -153,7 +153,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -175,7 +175,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -198,7 +198,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -325,7 +325,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param milliseconds the milliseconds type: long. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -348,7 +348,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param milliseconds the milliseconds. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return integer-reply, specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not exist or * the timeout could not be set. * @since 6.2 @@ -370,7 +370,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -392,7 +392,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 @@ -414,7 +414,7 @@ public interface RedisKeyCommands { * * @param key the key. * @param timestamp the milliseconds-timestamp type: posix time. - * @param expireArgs the expire arguments. + * @param expireArgs the expiry arguments. * @return Boolean integer-reply specifically: {@code true} if the timeout was set. {@code false} if {@code key} does not * exist or the timeout could not be set (see: {@code EXPIRE}). * @since 6.2 diff --git a/src/main/templates/io/lettuce/core/api/RedisScriptingCommands.java b/src/main/templates/io/lettuce/core/api/RedisScriptingCommands.java index 96e09c3940..eaefbf48f6 100644 --- a/src/main/templates/io/lettuce/core/api/RedisScriptingCommands.java +++ b/src/main/templates/io/lettuce/core/api/RedisScriptingCommands.java @@ -92,7 +92,7 @@ public interface RedisScriptingCommands { * @param values the values. * @param expected return type. * @return script result. - * @since 7.0 + * @since 6.4 */ T evalReadOnly(String script, ScriptOutputType type, K[] keys, V... values);