Skip to content
Snippets Groups Projects
Commit 96d7a48d authored by David Stainton's avatar David Stainton
Browse files

Fix kv API, add Exists method

parent 9e2fe243
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 { ...@@ -164,3 +164,9 @@ func (v *KV) GetFullKey(key string, version uint64) string {
func (v *KV) makeKey(key string, version uint64) string { func (v *KV) makeKey(key string, version uint64) string {
return fmt.Sprintf("%s%s_%d", v.prefix, key, version) 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