Skip to content
Snippets Groups Projects
Commit dfd62b50 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Merge branch 'XX-4109/unfuck-kv-api' into 'release'

Fix kv API, add Exists method

See merge request !347
parents 9e2fe243 af958de9
No related branches found
No related tags found
2 merge requests!510Release,!347Fix kv API, add Exists method
......@@ -164,3 +164,9 @@ func (v *KV) GetFullKey(key string, version uint64) string {
func (v *KV) makeKey(key string, version uint64) string {
return fmt.Sprintf("%s%s_%d", v.prefix, key, version)
}
// Exists returns false if the error indicates the element doesn't
// exist.
func (v *KV) Exists(err error) bool {
return ekv.Exists(err)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment