public static class ReactiveSetCommands.SRandMembersCommand extends ReactiveRedisConnection.KeyCommand
SRANDMEMBER
command parameters.Modifier and Type | Method and Description |
---|---|
ReactiveSetCommands.SRandMembersCommand |
from(ByteBuffer key)
Applies the key.
|
Optional<Long> |
getCount() |
static ReactiveSetCommands.SRandMembersCommand |
singleValue()
Creates a new
ReactiveSetCommands.SRandMembersCommand to retrieve one random member. |
static ReactiveSetCommands.SRandMembersCommand |
valueCount(long nrValuesToRetrieve)
Creates a new
ReactiveSetCommands.SRandMembersCommand given the number of values to retrieve. |
getKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public static ReactiveSetCommands.SRandMembersCommand valueCount(long nrValuesToRetrieve)
ReactiveSetCommands.SRandMembersCommand
given the number of values to retrieve.nrValuesToRetrieve
- ReactiveSetCommands.SRandMembersCommand
for a number of values to retrieve.public static ReactiveSetCommands.SRandMembersCommand singleValue()
ReactiveSetCommands.SRandMembersCommand
to retrieve one random member.ReactiveSetCommands.SRandMembersCommand
to retrieve one random member.public ReactiveSetCommands.SRandMembersCommand from(ByteBuffer key)
key
- must not be null.ReactiveSetCommands.SRandMembersCommand
with key applied.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.