diff --git a/java/client/src/main/java/glide/api/commands/BitmapBaseCommands.java b/java/client/src/main/java/glide/api/commands/BitmapBaseCommands.java index a22ad2ab3f..508cff39ca 100644 --- a/java/client/src/main/java/glide/api/commands/BitmapBaseCommands.java +++ b/java/client/src/main/java/glide/api/commands/BitmapBaseCommands.java @@ -12,6 +12,7 @@ import glide.api.models.commands.bitmap.BitFieldOptions.OffsetMultiplier; import glide.api.models.commands.bitmap.BitmapIndexType; import glide.api.models.commands.bitmap.BitwiseOperation; +import glide.api.models.configuration.ReadFrom; import java.util.concurrent.CompletableFuture; /** @@ -24,7 +25,7 @@ public interface BitmapBaseCommands { /** * Counts the number of set bits (population counting) in a string stored at key. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key for the string to count the set bits of. * @return The number of set bits in the string. Returns zero if the key is missing as it is * treated as an empty string. @@ -44,7 +45,7 @@ public interface BitmapBaseCommands { * -1 being the last element of the list, -2 being the penultimate, and * so on. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key for the string to count the set bits of. * @param start The starting offset byte index. * @param end The ending offset byte index. @@ -67,7 +68,7 @@ public interface BitmapBaseCommands { * so on. * * @since Redis 7.0 and above - * @see redis.io for details. + * @see valkey.io for details. * @param key The key for the string to count the set bits of. * @param start The starting offset. * @param end The ending offset. @@ -92,7 +93,7 @@ public interface BitmapBaseCommands { * non-existent then the bit at offset is set to value and the preceding * bits are set to 0. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param offset The index of the bit to be set. * @param value The bit value to set at offset. The value must be 0 or @@ -110,7 +111,7 @@ public interface BitmapBaseCommands { * Returns the bit value at offset in the string value stored at key. * offset should be greater than or equal to zero. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param offset The index of the bit to return. * @return The bit at offset of the string. Returns zero if the key is empty or if the positive @@ -127,7 +128,7 @@ public interface BitmapBaseCommands { /** * Returns the position of the first bit matching the given bit value. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param bit The bit value to match. The value must be 0 or 1. * @return The position of the first occurrence matching bit in the binary value of @@ -150,7 +151,7 @@ public interface BitmapBaseCommands { * indicating offsets starting at the end of the list, with -1 being the last byte of * the list, -2 being the penultimate, and so on. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param bit The bit value to match. The value must be 0 or 1. * @param start The starting offset. @@ -174,7 +175,7 @@ public interface BitmapBaseCommands { * negative numbers indicating offsets starting at the end of the list, with -1 being * the last byte of the list, -2 being the penultimate, and so on. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param bit The bit value to match. The value must be 0 or 1. * @param start The starting offset. @@ -203,7 +204,7 @@ public interface BitmapBaseCommands { * list, -2 being the penultimate, and so on. * * @since Redis 7.0 and above. - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param bit The bit value to match. The value must be 0 or 1. * @param start The starting offset. @@ -230,7 +231,7 @@ CompletableFuture bitpos( * * @apiNote When in cluster mode, destination and all keys must map to * the same hash slot. - * @see redis.io for details. + * @see valkey.io for details. * @param bitwiseOperation The bitwise operation to perform. * @param destination The key that will store the resulting string. * @param keys The list of keys to perform the bitwise operation on. @@ -251,7 +252,7 @@ CompletableFuture bitop( * Reads or modifies the array of bits representing the string that is held at key * based on the specified subCommands. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param subCommands The subCommands to be performed on the binary value of the string at * key, which could be any of the following: @@ -289,10 +290,11 @@ CompletableFuture bitop( /** * Reads the array of bits representing the string that is held at key based on the - * specified subCommands. + * specified subCommands.
+ * This command is routed depending on the client's {@link ReadFrom} strategy. * * @since Redis 6.0 and above - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param subCommands The GET subCommands to be performed. * @return An array of results from the GET subcommands. diff --git a/java/client/src/main/java/glide/api/models/BaseTransaction.java b/java/client/src/main/java/glide/api/models/BaseTransaction.java index f0e9653785..0f890ae8c9 100644 --- a/java/client/src/main/java/glide/api/models/BaseTransaction.java +++ b/java/client/src/main/java/glide/api/models/BaseTransaction.java @@ -210,6 +210,7 @@ import glide.api.models.commands.stream.StreamAddOptions.StreamAddOptionsBuilder; import glide.api.models.commands.stream.StreamRange; import glide.api.models.commands.stream.StreamTrimOptions; +import glide.api.models.configuration.ReadFrom; import java.util.Arrays; import java.util.Map; import lombok.Getter; @@ -3445,7 +3446,7 @@ public T touch(@NonNull String[] keys) { /** * Counts the number of set bits (population counting) in a string stored at key. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key for the string to count the set bits of. * @return Command Response - The number of set bits in the string. Returns zero if the key is * missing as it is treated as an empty string. @@ -3464,7 +3465,7 @@ public T bitcount(@NonNull String key) { * -1 being the last element of the list, -2 being the penultimate, and * so on. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key for the string to count the set bits of. * @param start The starting byte offset. * @param end The ending byte offset. @@ -3488,7 +3489,7 @@ public T bitcount(@NonNull String key, long start, long end) { * so on. * * @since Redis 7.0 and above - * @see redis.io for details. + * @see valkey.io for details. * @param key The key for the string to count the set bits of. * @param start The starting offset. * @param end The ending offset. @@ -3683,7 +3684,7 @@ public T functionList(@NonNull String libNamePattern, boolean withCode) { * non-existent then the bit at offset is set to value and the preceding * bits are set to 0. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param offset The index of the bit to be set. * @param value The bit value to set at offset. The value must be 0 or @@ -3700,7 +3701,7 @@ public T setbit(@NonNull String key, long offset, long value) { * Returns the bit value at offset in the string value stored at key. * offset should be greater than or equal to zero. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param offset The index of the bit to return. * @return Command Response - The bit at offset of the string. Returns zero if the key is empty or @@ -3782,7 +3783,7 @@ public T blmpop(@NonNull String[] keys, @NonNull ListDirection direction, double /** * Returns the position of the first bit matching the given bit value. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param bit The bit value to match. The value must be 0 or 1. * @return Command Response - The position of the first occurrence matching bit in @@ -3802,7 +3803,7 @@ public T bitpos(@NonNull String key, long bit) { * indicating offsets starting at the end of the list, with -1 being the last byte of * the list, -2 being the penultimate, and so on. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param bit The bit value to match. The value must be 0 or 1. * @param start The starting offset. @@ -3823,7 +3824,7 @@ public T bitpos(@NonNull String key, long bit, long start) { * negative numbers indicating offsets starting at the end of the list, with -1 being * the last byte of the list, -2 being the penultimate, and so on. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param bit The bit value to match. The value must be 0 or 1. * @param start The starting offset. @@ -3850,7 +3851,7 @@ public T bitpos(@NonNull String key, long bit, long start, long end) { * list, -2 being the penultimate, and so on. * * @since Redis 7.0 and above. - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param bit The bit value to match. The value must be 0 or 1. * @param start The starting offset. @@ -3879,7 +3880,7 @@ public T bitpos( * Perform a bitwise operation between multiple keys (containing string values) and store the * result in the destination. * - * @see redis.io for details. + * @see valkey.io for details. * @param bitwiseOperation The bitwise operation to perform. * @param destination The key that will store the resulting string. * @param keys The list of keys to perform the bitwise operation on. @@ -4061,7 +4062,7 @@ public T srandmember(@NonNull String key, long count) { * Reads or modifies the array of bits representing the string that is held at key * based on the specified subCommands. * - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param subCommands The subCommands to be performed on the binary value of the string at * key, which could be any of the following: @@ -4092,10 +4093,11 @@ public T bitfield(@NonNull String key, @NonNull BitFieldSubCommands[] subCommand /** * Reads the array of bits representing the string that is held at key based on the - * specified subCommands. + * specified subCommands.
+ * This command is routed depending on the client's {@link ReadFrom} strategy. * * @since Redis 6.0 and above - * @see redis.io for details. + * @see valkey.io for details. * @param key The key of the string. * @param subCommands The GET subCommands to be performed. * @return Command Response - An array of results from the GET subcommands.