Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetGlobalRedisKeyPrefix ¶
func SetGlobalRedisKeyPrefix(key string)
Types ¶
type Config ¶
type Config struct {
Address string `json:"address,omitempty" yaml:"address,omitempty" xml:"address,omitempty"`
Username string `json:"username,omitempty" yaml:"username,omitempty" xml:"username,omitempty"`
Password string `json:"password,omitempty" yaml:"password,omitempty" xml:"password,omitempty"`
DatabaseIndex int `json:"database_index,omitempty" yaml:"database_index,omitempty" xml:"database_index,omitempty"`
MaxRetries int `json:"max_retries,omitempty" yaml:"max_retries,omitempty" xml:"max_retries,omitempty"`
TimeoutSecond int `json:"timeout_second,omitempty" yaml:"timeout_second,omitempty" xml:"timeout_second,omitempty"`
MaxLifeSecond int `json:"max_life_second,omitempty" yaml:"max_life_second,omitempty" xml:"max_life_second,omitempty"`
MaxOpen int `json:"max_open,omitempty" yaml:"max_open,omitempty" xml:"max_open,omitempty"`
Prefix string `json:"prefix,omitempty" yaml:"prefix,omitempty" xml:"prefix,omitempty"`
KeySeparator string `json:"key_separator,omitempty" yaml:"key_separator,omitempty" xml:"key_separator,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.