add Store Close method (#1500)

* add Store Close method

* Update sync store build failure
This commit is contained in:
Asim Aslam
2020-04-08 09:51:10 +01:00
committed by GitHub
parent 4cac7dcc48
commit 4b0e27413e
11 changed files with 56 additions and 10 deletions

View File

@@ -28,6 +28,8 @@ type Store interface {
Delete(key string, opts ...DeleteOption) error
// List returns any keys that match, or an empty list with no error if none matched.
List(opts ...ListOption) ([]string, error)
// Close the store
Close() error
// String returns the name of the implementation.
String() string
}