diff --git a/java/client/src/main/java/glide/api/commands/StreamBaseCommands.java b/java/client/src/main/java/glide/api/commands/StreamBaseCommands.java index d3bb55fe91..11fbbfbef8 100644 --- a/java/client/src/main/java/glide/api/commands/StreamBaseCommands.java +++ b/java/client/src/main/java/glide/api/commands/StreamBaseCommands.java @@ -14,7 +14,8 @@ public interface StreamBaseCommands { /** - * Adds an entry to the specified stream. + * Adds an entry to the specified stream stored at key.
+ * If the key doesn't exist, the stream is created. * * @see redis.io for details. * @param key The key of the stream. @@ -29,7 +30,8 @@ public interface StreamBaseCommands { CompletableFuture xadd(String key, Map values); /** - * Adds an entry to the specified stream. + * Adds an entry to the specified stream stored at key.
+ * If the key doesn't exist, the stream is created. * * @see redis.io for details. * @param key The key of the stream. 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 16dbf19fba..20b26f6cbe 100644 --- a/java/client/src/main/java/glide/api/models/BaseTransaction.java +++ b/java/client/src/main/java/glide/api/models/BaseTransaction.java @@ -1332,7 +1332,8 @@ public T zscore(@NonNull String key, @NonNull String member) { } /** - * Adds an entry to the specified stream. + * Adds an entry to the specified stream stored at key.
+ * If the key doesn't exist, the stream is created. * * @see redis.io for details. * @param key The key of the stream. @@ -1345,7 +1346,8 @@ public T xadd(@NonNull String key, @NonNull Map values) { } /** - * Adds an entry to the specified stream. + * Adds an entry to the specified stream stored at key.
+ * If the key doesn't exist, the stream is created. * * @see redis.io for details. * @param key The key of the stream. diff --git a/node/src/BaseClient.ts b/node/src/BaseClient.ts index c5b0201d9d..7a3435972d 100644 --- a/node/src/BaseClient.ts +++ b/node/src/BaseClient.ts @@ -1273,7 +1273,7 @@ export class BaseClient { } /** - * Adds an entry to the specified stream. + * Adds an entry to the specified stream stored at `key`. If the `key` doesn't exist, the stream is created. * See https://redis.io/commands/xadd/ for more details. * * @param key - The key of the stream. @@ -1289,7 +1289,7 @@ export class BaseClient { } /** - * Trims the stream by evicting older entries. + * Trims the stream stored at `key` by evicting older entries. * See https://redis.io/commands/xtrim/ for more details. * * @param key - the key of the stream diff --git a/node/src/Transaction.ts b/node/src/Transaction.ts index c7eb34b153..6545631561 100644 --- a/node/src/Transaction.ts +++ b/node/src/Transaction.ts @@ -1090,7 +1090,7 @@ export class BaseTransaction> { } /** - * Adds an entry to the specified stream. + * Adds an entry to the specified stream stored at `key`. If the `key` doesn't exist, the stream is created. * See https://redis.io/commands/xadd/ for more details. * * @param key - The key of the stream. @@ -1106,7 +1106,7 @@ export class BaseTransaction> { } /** - * Trims the stream by evicting older entries. + * Trims the stream stored at `key` by evicting older entries. * See https://redis.io/commands/xtrim/ for more details. * * @param key - the key of the stream