Skip to content

v1.3.9

Choose a tag to compare

@wangmingjob wangmingjob released this 30 Apr 01:22
· 12 commits to master since this release

update redis config, add redis config PoolFIFO, Url

        // Type of connection pool.
	// true for FIFO pool, false for LIFO pool.
	// Note that fifo has higher overhead compared to lifo.
	PoolFIFO bool
	// Maximum number of socket connections.
	// Default is 10 connections per every available CPU as reported by runtime.GOMAXPROCS.
	PoolSize int
	// Minimum number of idle connections which is useful when establishing
	// new connection is slow.
	MinIdleConns int

	// redis://user:password@localhost:6789/3?dial_timeout=3&db=1&read_timeout=6s&max_retries=2
	// url, 如果使用url,其他配置无效, url的优先级高于其他配置
	Url string
Url模式,url的优先级高于其他配置
redis://user:password@localhost:6789/3?dial_timeout=3&db=1&read_timeout=6s&max_retries=2

image