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()
boolean
stream
(ByteBuffer key) Creates a newReactiveStreamCommands.TrimCommand
given akey
.to
(long count) Applies the numeric count.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
stream
Creates a newReactiveStreamCommands.TrimCommand
given akey
.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveStreamCommands.TrimCommand
forkey
.
-
to
Applies the numeric count. Constructs a new command instance with all previously configured properties.- Parameters:
count
-- Returns:
- a new
ReactiveStreamCommands.TrimCommand
with count applied.
-
approximate
Applies approximate trimming. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveStreamCommands.TrimCommand
with approximateTrimming applied. - Since:
- 2.4
-
approximate
AppliesapproximateTrimming
. Constructs a new command instance with all previously configured properties.- Parameters:
approximateTrimming
-- Returns:
- a new
ReactiveStreamCommands.TrimCommand
with approximateTrimming applied. - Since:
- 2.4
-
getCount
- Returns:
- can be null.
-
isApproximateTrimming
public boolean isApproximateTrimming()
-