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