Skip to content

Commit 3d71f97

Browse files
committed
Fix public API method missing Javadoc.
Signed-off-by: Chris Bono <chris.bono@broadcom.com>
1 parent 6f868d4 commit 3d71f97

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/org/springframework/data/redis/connection/ReactiveStreamCommands.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,6 +2044,15 @@ default Mono<Long> xTrim(ByteBuffer key, long count, boolean approximateTrimming
20442044
.map(NumericResponse::getOutput);
20452045
}
20462046

2047+
/**
2048+
* Trims the stream to {@code count} elements.
2049+
*
2050+
* @param key the stream key.
2051+
* @param options the trim options
2052+
* @return {@link Mono} emitting the number of removed entries.
2053+
* @since 4.1
2054+
* @see <a href="https://redis.io/commands/xtrim">Redis Documentation: XTRIM</a>
2055+
*/
20472056
default Mono<Long> xTrim(ByteBuffer key, XTrimOptions options) {
20482057

20492058
Assert.notNull(key, "Key must not be null");

0 commit comments

Comments
 (0)