public interface PersistRepository
extends org.apache.shardingsphere.spi.typed.TypedSPI
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_SEPARATOR
Path separator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close.
|
void |
delete(String key)
Delete node.
|
String |
get(String key)
Get data from registry center.
|
List<String> |
getChildrenKeys(String key)
Get names of sub-node.
|
void |
persist(String key,
String value)
Persist data.
|
static final String PATH_SEPARATOR
String get(String key)
Maybe use cache if existed.
key - key of dataList<String> getChildrenKeys(String key)
key - key of datavoid persist(String key, String value)
key - key of datavalue - value of datavoid delete(String key)
key - key of datavoid close()
Copyright © 2022 The Apache Software Foundation. All rights reserved.