public static class ReactiveStreamCommands.TrimCommand extends ReactiveRedisConnection.KeyCommand
XTRIM command parameters.| Modifier and Type | Method and Description |
|---|---|
ReactiveStreamCommands.TrimCommand |
approximate()
Applies approximate trimming.
|
ReactiveStreamCommands.TrimCommand |
approximate(boolean approximateTrimming)
Applies
approximateTrimming. |
Long |
getCount() |
boolean |
isApproximateTrimming() |
static ReactiveStreamCommands.TrimCommand |
stream(ByteBuffer key)
Creates a new
ReactiveStreamCommands.TrimCommand given a key. |
ReactiveStreamCommands.TrimCommand |
to(long count)
Applies the numeric count.
|
getKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic static ReactiveStreamCommands.TrimCommand stream(ByteBuffer key)
ReactiveStreamCommands.TrimCommand given a key.key - must not be null.ReactiveStreamCommands.TrimCommand for key.public ReactiveStreamCommands.TrimCommand to(long count)
count - ReactiveStreamCommands.TrimCommand with count applied.public ReactiveStreamCommands.TrimCommand approximate()
ReactiveStreamCommands.TrimCommand with approximateTrimming applied.public ReactiveStreamCommands.TrimCommand approximate(boolean approximateTrimming)
approximateTrimming. Constructs a new command instance with all previously configured properties.approximateTrimming - ReactiveStreamCommands.TrimCommand with approximateTrimming applied.public boolean isApproximateTrimming()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.