public static class ReactiveHashCommands.HRandFieldCommand extends ReactiveRedisConnection.KeyCommand
ReactiveRedisConnection.Command.| Modifier and Type | Method and Description |
|---|---|
ReactiveHashCommands.HRandFieldCommand |
count(long count)
Applies the count.
|
long |
getCount() |
static ReactiveHashCommands.HRandFieldCommand |
key(ByteBuffer key)
Applies the hash key.
|
getKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic static ReactiveHashCommands.HRandFieldCommand key(ByteBuffer key)
key - must not be null.ReactiveHashCommands.HRandFieldCommand with key applied.public ReactiveHashCommands.HRandFieldCommand count(long count)
count argument is positive, return a list of distinct fields, capped either at count or
the hash size. If count is negative, the behavior changes and the command is allowed to return the same
field multiple times. In this case, the number of returned fields is the absolute value of the specified count.count - ReactiveHashCommands.HRandFieldCommand with key applied.public long getCount()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.