Class ReactiveZSetCommands.ZRandMemberCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveZSetCommands.ZRandMemberCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveZSetCommands
public static class ReactiveZSetCommands.ZRandMemberCommand
extends ReactiveRedisConnection.KeyCommand
ZRANDMEMBER command parameters.- Since:
- 2.6
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfrom(ByteBuffer key) Applies the key.longgetCount()Creates a newReactiveZSetCommands.ZRandMemberCommandto retrieve one random member.valueCount(long nrValuesToRetrieve) Creates a newReactiveZSetCommands.ZRandMemberCommandgiven the number of values to retrieve.Methods inherited from class ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveRedisConnection.Command
getName
-
Method Details
-
valueCount
Creates a newReactiveZSetCommands.ZRandMemberCommandgiven the number of values to retrieve.- Parameters:
nrValuesToRetrieve-- Returns:
- a new
ReactiveZSetCommands.ZRandMemberCommandfor a number of values to retrieve.
-
singleValue
Creates a newReactiveZSetCommands.ZRandMemberCommandto retrieve one random member.- Returns:
- a new
ReactiveZSetCommands.ZRandMemberCommandto retrieve one random member.
-
from
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZRandMemberCommandwith key applied.
-
getCount
public long getCount()- Returns:
-