public interface RBuckets
Modifier and Type | Method and Description |
---|---|
<V> List<RBucket<V>> |
find(String pattern)
Returns a list of object holder instances by a key pattern.
|
<V> Map<String,V> |
get(String... keys)
Returns Redis object mapped by key.
|
void |
set(Map<String,?> buckets)
Saves objects mapped by Redis key.
|
boolean |
trySet(Map<String,?> buckets)
Try to save objects mapped by Redis key.
|
<V> List<RBucket<V>> find(String pattern)
Returns a list of object holder instances by a key pattern.
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 hillo h[^e]llo matches hallo, hbllo, ... but not hello h[a-b]llo matches hallo and hbllo
Use \ to escape special characters if you want to match them verbatim.
V
- type of valuepattern
- - pattern of key<V> Map<String,V> get(String... keys)
V
- type of valuekeys
- - keysboolean trySet(Map<String,?> buckets)
buckets
- - map of bucketstrue
if object has been set overwise false
Copyright © 2014–2017 The Redisson Project. All rights reserved.