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.- Since:
- 2.2
- Author:
- Mark Paluch, Christoph Strobl, Tugdual Grall, Dengliming, Mark John Moreno, jinkshower, Jeonggyu Choi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionApplies approximate trimming.approximate
(boolean approximateTrimming) AppliesapproximateTrimming
.@Nullable Long
getCount()
boolean
stream
(ByteBuffer key) Creates a newReactiveStreamCommands.TrimCommand
given akey
.to
(long count) Applies the numeric count.Methods inherited from class ReactiveRedisConnection.KeyCommand
getKey
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface 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()
-