Skip to content

Commit

Permalink
Java/Node: Update docs for xadd and xtrim
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Carbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Apr 3, 2024
1 parent 38f5a74 commit 8577fd8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
public interface StreamBaseCommands {

/**
* Adds an entry to the specified stream.
* Adds an entry to the specified stream stored at <code>key</code>.<br>
* If the <code>key</code> doesn't exist, the stream is created.
*
* @see <a href="https://redis.io/commands/xadd/">redis.io</a> for details.
* @param key The key of the stream.
Expand All @@ -29,7 +30,8 @@ public interface StreamBaseCommands {
CompletableFuture<String> xadd(String key, Map<String, String> values);

/**
* Adds an entry to the specified stream.
* Adds an entry to the specified stream stored at <code>key</code>.<br>
* If the <code>key</code> doesn't exist, the stream is created.
*
* @see <a href="https://redis.io/commands/xadd/">redis.io</a> for details.
* @param key The key of the stream.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>key</code>.<br>
* If the <code>key</code> doesn't exist, the stream is created.
*
* @see <a href="https://redis.io/commands/xadd/">redis.io</a> for details.
* @param key The key of the stream.
Expand All @@ -1345,7 +1346,8 @@ public T xadd(@NonNull String key, @NonNull Map<String, String> values) {
}

/**
* Adds an entry to the specified stream.
* Adds an entry to the specified stream stored at <code>key</code>.<br>
* If the <code>key</code> doesn't exist, the stream is created.
*
* @see <a href="https://redis.io/commands/xadd/">redis.io</a> for details.
* @param key The key of the stream.
Expand Down
4 changes: 2 additions & 2 deletions node/src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions node/src/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ export class BaseTransaction<T extends BaseTransaction<T>> {
}

/**
* 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.
Expand All @@ -1106,7 +1106,7 @@ export class BaseTransaction<T extends BaseTransaction<T>> {
}

/**
* 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
Expand Down

0 comments on commit 8577fd8

Please sign in to comment.