Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateClient = DefaultNewClient1
Functions ¶
func DefaultNewClient1 ¶
func DefaultNewClient1(c *ClientConfig, cc *Config) (clt *redis.Client, err error)
Types ¶
type Client ¶
type Client struct { Client *redis.Client Cfg ClientConfig ApiLog func(args [][2]interface{}) func() // contains filtered or unexported fields }
type ClientConfig ¶
type Config ¶
type Config struct { MaxReadTime int `json:"max_sock_read_time" yaml:"max_sock_read_time"` MaxWriteTime int `json:"max_sock_write_time" yaml:"max_sock_write_time"` MaxRequestTime int `json:"max_request_time" yaml:"max_request_time"` IdleCheckTime int `json:"idle_check_time" yaml:"idle_check_time"` SlowThreshold int `json:"slow_threshold" yaml:"slow_threshold"` }
Click to show internal directories.
Click to hide internal directories.