MCPcopy
hub / github.com/redis/go-redis / init

Method init

redis.go:1421–1429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1419}
1420
1421func (c *Client) init() {
1422 c.cmdable = c.Process
1423 c.initHooks(hooks{
1424 dial: c.baseClient.dial,
1425 process: c.baseClient.process,
1426 pipeline: c.baseClient.processPipeline,
1427 txPipeline: c.baseClient.processTxPipeline,
1428 })
1429}
1430
1431func (c *Client) WithTimeout(timeout time.Duration) *Client {
1432 clone := *c

Callers 3

NewClientFunction · 0.95
NewFailoverClientFunction · 0.95
WithTimeoutMethod · 0.45

Calls 1

initHooksMethod · 0.80

Tested by

no test coverage detected