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)
RKeysReactive
KEYSLOT
Redis command.getSlot
in interface RKeysReactive
key
- - name of keypublic org.reactivestreams.Publisher<String> getKeysByPattern(String pattern)
RKeysReactive
SCAN
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 RKeysReactive
pattern
- - match patternpublic org.reactivestreams.Publisher<String> getKeys()
RKeysReactive
SCAN
Redis command.getKeys
in interface RKeysReactive
public org.reactivestreams.Publisher<Collection<String>> findKeysByPattern(String pattern)
RKeysReactive
KEYS
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 RKeysReactive
pattern
- - match patternpublic org.reactivestreams.Publisher<String> randomKey()
RKeysReactive
RANDOM_KEY
Redis command.randomKey
in interface RKeysReactive
public org.reactivestreams.Publisher<Long> deleteByPattern(String pattern)
RKeysReactive
deleteByPattern
in interface RKeysReactive
pattern
- - match patternpublic org.reactivestreams.Publisher<Long> delete(String... keys)
RKeysReactive
DEL
Redis command.delete
in interface RKeysReactive
keys
- - object namespublic org.reactivestreams.Publisher<Void> flushdb()
RKeysReactive
FLUSHDB
Redis command.flushdb
in interface RKeysReactive
public org.reactivestreams.Publisher<Void> flushall()
RKeysReactive
FLUSHALL
Redis command.flushall
in interface RKeysReactive
Copyright © 2014–2016 The Redisson Project. All rights reserved.