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

@@ -23,6 +23,10 @@ func NewCache(stores ...store.Store) store.Store {
return c
}
func (c *cache) Close() error {
return nil
}
func (c *cache) Init(...store.Option) error {
if len(c.stores) < 2 {
return errors.New("cache requires at least 2 stores")