public class RedissonKeysReactive extends Object implements RKeysReactive
| Constructor and Description |
|---|
RedissonKeysReactive(CommandReactiveService commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Long> |
delete(String... keys)
Delete multiple objects by name.
|
org.reactivestreams.Publisher<Long> |
deleteByPattern(String pattern)
Delete multiple objects by a key pattern.
|
org.reactivestreams.Publisher<Collection<String>> |
findKeysByPattern(String pattern)
Find keys by key search pattern by one Redis call.
|
org.reactivestreams.Publisher<Void> |
flushall()
Delete all the keys of all the existing databases
Uses
FLUSHALL Redis command. |
org.reactivestreams.Publisher<Void> |
flushdb()
Delete all the keys of the currently selected database
Uses
FLUSHDB Redis command. |
org.reactivestreams.Publisher<String> |
getKeys()
Load keys in incrementally iterate mode.
|
org.reactivestreams.Publisher<String> |
getKeysByPattern(String pattern)
Find keys by pattern and load it in incrementally iterate mode.
|
org.reactivestreams.Publisher<Integer> |
getSlot(String key)
Get hash slot identifier for key.
|
org.reactivestreams.Publisher<String> |
randomKey()
Get random key
Uses
RANDOM_KEY Redis command. |
public RedissonKeysReactive(CommandReactiveService commandExecutor)
public org.reactivestreams.Publisher<Integer> getSlot(String key)
RKeysReactiveKEYSLOT Redis command.getSlot in interface RKeysReactivekey - - name of keypublic org.reactivestreams.Publisher<String> getKeysByPattern(String pattern)
RKeysReactiveSCAN Redis command.
Supported glob-style patterns:
h?llo subscribes to hello, hallo and hxllo
h*llo subscribes to hllo and heeeello
h[ae]llo subscribes to hello and hallo, but not hillogetKeysByPattern in interface RKeysReactivepattern - - match patternpublic org.reactivestreams.Publisher<String> getKeys()
RKeysReactiveSCAN Redis command.getKeys in interface RKeysReactivepublic org.reactivestreams.Publisher<Collection<String>> findKeysByPattern(String pattern)
RKeysReactiveKEYS Redis command.
Supported glob-style patterns:
h?llo subscribes to hello, hallo and hxllo
h*llo subscribes to hllo and heeeello
h[ae]llo subscribes to hello and hallo, but not hillofindKeysByPattern in interface RKeysReactivepattern - - match patternpublic org.reactivestreams.Publisher<String> randomKey()
RKeysReactiveRANDOM_KEY Redis command.randomKey in interface RKeysReactivepublic org.reactivestreams.Publisher<Long> deleteByPattern(String pattern)
RKeysReactivedeleteByPattern in interface RKeysReactivepattern - - match patternpublic org.reactivestreams.Publisher<Long> delete(String... keys)
RKeysReactiveDEL Redis command.delete in interface RKeysReactivekeys - - object namespublic org.reactivestreams.Publisher<Void> flushdb()
RKeysReactiveFLUSHDB Redis command.flushdb in interface RKeysReactivepublic org.reactivestreams.Publisher<Void> flushall()
RKeysReactiveFLUSHALL Redis command.flushall in interface RKeysReactiveCopyright © 2014–2017 The Redisson Project. All rights reserved.