Move data to store

This commit is contained in:
Asim Aslam
2019-06-12 07:46:20 +01:00
parent f81f66c98b
commit a5412dd4a0
4 changed files with 33 additions and 33 deletions

15
store/options.go Normal file
View File

@@ -0,0 +1,15 @@
package store
import (
"github.com/micro/go-micro/options"
)
// Set the nodes used to back the store
func Nodes(a ...string) options.Option {
return options.WithValue("store.nodes", a)
}
// Prefix sets a prefix to any key ids used
func Prefix(p string) options.Option {
return options.WithValue("store.prefix", p)
}