set default store, fix store options bug, add String method

This commit is contained in:
Asim Aslam
2020-01-10 19:13:55 +00:00
parent 37d1139a57
commit 6ca298c61d
7 changed files with 29 additions and 0 deletions

View File

@@ -130,6 +130,10 @@ func (m *memoryStore) Delete(key string) error {
return nil
}
func (m *memoryStore) String() string {
return "memory"
}
// NewStore returns a new store.Store
func NewStore(opts ...store.Option) store.Store {
var options store.Options