milvus/internal/kv/kv.go
zhenshan.cao bbecf51f8c Move kv directory
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
2020-10-29 11:46:34 +08:00

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()
}