From 6dcfbada7df73c4e46f070e64e4aa0699fd4d9bf Mon Sep 17 00:00:00 2001 From: Tihomir Mateev Date: Fri, 7 Jun 2024 14:48:24 +0300 Subject: [PATCH] Fixed formatting issues --- .../api/async/RedisHashAsyncCommands.java | 48 +++++++++---------- .../reactive/RedisHashReactiveCommands.java | 48 +++++++++---------- .../core/api/sync/RedisHashCommands.java | 48 +++++++++---------- .../async/NodeSelectionHashAsyncCommands.java | 48 +++++++++---------- .../api/sync/NodeSelectionHashCommands.java | 48 +++++++++---------- .../lettuce/core/api/RedisHashCommands.java | 48 +++++++++---------- 6 files changed, 144 insertions(+), 144 deletions(-) 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 029b53a545..ee0b8eed1a 100644 --- a/src/main/java/io/lettuce/core/api/async/RedisHashAsyncCommands.java +++ b/src/main/java/io/lettuce/core/api/async/RedisHashAsyncCommands.java @@ -443,9 +443,9 @@ 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 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 + * 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); @@ -458,9 +458,9 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @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 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 + * 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,9 +472,9 @@ 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 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 + * 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,9 +487,9 @@ 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 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 + * 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); @@ -610,9 +610,9 @@ 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 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 + * 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); @@ -625,9 +625,9 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @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 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 + * 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,9 +639,9 @@ 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 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 + * 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); @@ -654,9 +654,9 @@ RedisFuture hscanNovalues(KeyStreamingChannel channel, K ke * @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 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 + * 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); 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 fd0e9e3272..c0bc9f073d 100644 --- a/src/main/java/io/lettuce/core/api/reactive/RedisHashReactiveCommands.java +++ b/src/main/java/io/lettuce/core/api/reactive/RedisHashReactiveCommands.java @@ -473,9 +473,9 @@ 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 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 + * 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); @@ -488,9 +488,9 @@ public interface RedisHashReactiveCommands { * @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 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 + * 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,9 +502,9 @@ 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 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 + * 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,9 +517,9 @@ 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 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 + * 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); @@ -640,9 +640,9 @@ 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 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 + * 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); @@ -655,9 +655,9 @@ public interface RedisHashReactiveCommands { * @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 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 + * 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,9 +669,9 @@ 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 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 + * 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); @@ -684,9 +684,9 @@ public interface RedisHashReactiveCommands { * @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 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 + * 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); 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 16b5fc6b1d..2d9f3ac313 100644 --- a/src/main/java/io/lettuce/core/api/sync/RedisHashCommands.java +++ b/src/main/java/io/lettuce/core/api/sync/RedisHashCommands.java @@ -440,9 +440,9 @@ 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 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 + * 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); @@ -455,9 +455,9 @@ public interface RedisHashCommands { * @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 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 + * 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,9 +469,9 @@ 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 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 + * 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,9 +484,9 @@ 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 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 + * 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); @@ -607,9 +607,9 @@ 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 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 + * 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); @@ -622,9 +622,9 @@ public interface RedisHashCommands { * @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 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 + * 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,9 +636,9 @@ 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 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 + * 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); @@ -651,9 +651,9 @@ public interface RedisHashCommands { * @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 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 + * 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); 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 f324f5b235..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 @@ -442,9 +442,9 @@ 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 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 + * 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); @@ -457,9 +457,9 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @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 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 + * 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,9 +471,9 @@ 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 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 + * 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,9 +486,9 @@ 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 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 + * 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); @@ -609,9 +609,9 @@ 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 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 + * 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); @@ -624,9 +624,9 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @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 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 + * 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,9 +638,9 @@ 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 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 + * 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); @@ -653,9 +653,9 @@ AsyncExecutions hscanNovalues(KeyStreamingChannel channel, * @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 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 + * 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); 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 015118c67c..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 @@ -440,9 +440,9 @@ 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 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 + * 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); @@ -455,9 +455,9 @@ public interface NodeSelectionHashCommands { * @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 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 + * 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,9 +469,9 @@ 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 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 + * 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,9 +484,9 @@ 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 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 + * 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); @@ -607,9 +607,9 @@ 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 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 + * 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); @@ -622,9 +622,9 @@ public interface NodeSelectionHashCommands { * @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 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 + * 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,9 +636,9 @@ 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 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 + * 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); @@ -651,9 +651,9 @@ public interface NodeSelectionHashCommands { * @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 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 + * 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); diff --git a/src/main/templates/io/lettuce/core/api/RedisHashCommands.java b/src/main/templates/io/lettuce/core/api/RedisHashCommands.java index ad0015862a..ac05591741 100644 --- a/src/main/templates/io/lettuce/core/api/RedisHashCommands.java +++ b/src/main/templates/io/lettuce/core/api/RedisHashCommands.java @@ -435,9 +435,9 @@ 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 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 + * 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); @@ -450,9 +450,9 @@ public interface RedisHashCommands { * @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 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 + * 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,9 +464,9 @@ 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 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 + * 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,9 +479,9 @@ 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 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 + * 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); @@ -602,9 +602,9 @@ 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 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 + * 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); @@ -617,9 +617,9 @@ public interface RedisHashCommands { * @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 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 + * 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,9 +631,9 @@ 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 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 + * 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); @@ -646,9 +646,9 @@ public interface RedisHashCommands { * @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 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 + * 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);