Class ReactiveSetCommands.SRandMembersCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveSetCommands.SRandMembersCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveSetCommands
public static class ReactiveSetCommands.SRandMembersCommand
extends ReactiveRedisConnection.KeyCommand
SRANDMEMBER command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfrom(ByteBuffer key) Applies the key.getCount()Creates a newReactiveSetCommands.SRandMembersCommandto retrieve one random member.valueCount(long nrValuesToRetrieve) Creates a newReactiveSetCommands.SRandMembersCommandgiven the number of values to retrieve.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
valueCount
Creates a newReactiveSetCommands.SRandMembersCommandgiven the number of values to retrieve.- Parameters:
nrValuesToRetrieve-- Returns:
- a new
ReactiveSetCommands.SRandMembersCommandfor a number of values to retrieve.
-
singleValue
Creates a newReactiveSetCommands.SRandMembersCommandto retrieve one random member.- Returns:
- a new
ReactiveSetCommands.SRandMembersCommandto 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
ReactiveSetCommands.SRandMembersCommandwith key applied.
-
getCount
- Returns:
-