Class ReactiveStreamCommands.TrimCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveStreamCommands.TrimCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveStreamCommands
XTRIM command parameters.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionApplies approximate trimming.approximate(boolean approximateTrimming) AppliesapproximateTrimming.getCount()booleanstream(ByteBuffer key) Creates a newReactiveStreamCommands.TrimCommandgiven akey.to(long count) Applies the numeric count.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
stream
Creates a newReactiveStreamCommands.TrimCommandgiven akey.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveStreamCommands.TrimCommandforkey.
-
to
Applies the numeric count. Constructs a new command instance with all previously configured properties.- Parameters:
count-- Returns:
- a new
ReactiveStreamCommands.TrimCommandwith count applied.
-
approximate
Applies approximate trimming. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveStreamCommands.TrimCommandwith approximateTrimming applied. - Since:
- 2.4
-
approximate
AppliesapproximateTrimming. Constructs a new command instance with all previously configured properties.- Parameters:
approximateTrimming-- Returns:
- a new
ReactiveStreamCommands.TrimCommandwith approximateTrimming applied. - Since:
- 2.4
-
getCount
- Returns:
- can be null.
-
isApproximateTrimming
public boolean isApproximateTrimming()
-