mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
aeca8f85a5
Signed-off-by: neza2017 <yefu.chen@zilliz.com>
19 lines
415 B
Go
19 lines
415 B
Go
package kv
|
|
|
|
type Base interface {
|
|
Load(key string) (string, error)
|
|
MultiLoad(keys []string) ([]string, error)
|
|
LoadWithPrefix(key string) ([]string, []string, error)
|
|
Save(key, value string) error
|
|
MultiSave(kvs map[string]string) error
|
|
Remove(key string) error
|
|
MultiRemove(keys []string) error
|
|
|
|
Close()
|
|
}
|
|
|
|
type TxnBase interface {
|
|
Base
|
|
MultiSaveAndRemove(saves map[string]string, removals []string) error
|
|
}
|