2019-06-12 07:46:20 +01:00
|
|
|
package store
|
2019-06-11 17:20:52 +01:00
|
|
|
|
|
|
|
import (
|
2019-06-12 12:45:42 +01:00
|
|
|
"github.com/micro/go-micro/config/options"
|
2019-06-11 17:20:52 +01:00
|
|
|
)
|
|
|
|
|
2019-06-12 07:46:20 +01:00
|
|
|
// Set the nodes used to back the store
|
2019-06-11 17:20:52 +01:00
|
|
|
func Nodes(a ...string) options.Option {
|
2019-06-12 07:46:20 +01:00
|
|
|
return options.WithValue("store.nodes", a)
|
2019-06-11 17:20:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Prefix sets a prefix to any key ids used
|
|
|
|
func Prefix(p string) options.Option {
|
2019-06-12 07:46:20 +01:00
|
|
|
return options.WithValue("store.prefix", p)
|
2019-06-11 17:20:52 +01:00
|
|
|
}
|