体验新版 GitCode,发现更多精彩内容 >>
package kv
type KVBase 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 MultiSaveAndRemove(saves map[string]string, removals []string) error
Close()
}