mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
bbecf51f8c
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
14 lines
307 B
Go
14 lines
307 B
Go
package kv
|
|
|
|
import "go.etcd.io/etcd/clientv3"
|
|
|
|
type Base interface {
|
|
Load(key string) (string, error)
|
|
Save(key, value string) error
|
|
Remove(key string) error
|
|
Watch(key string) clientv3.WatchChan
|
|
WatchWithPrefix(key string) clientv3.WatchChan
|
|
LoadWithPrefix(key string) ( []string, []string)
|
|
Close()
|
|
}
|