summaryrefslogtreecommitdiff
path: root/plugins/memcached/config.go
blob: 6d413790611d25d7b2c2e0f26924db45adc4fafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package memcached

type Config struct {
	// Addr is url for memcached, 11211 port is used by default
	Addr []string
}

func (s *Config) InitDefaults() {
	if s.Addr == nil {
		s.Addr = []string{"127.0.0.1:11211"} // default url for memcached
	}
}