MCPcopy Create free account
hub / github.com/DoNewsCode/core / Make

Method Make

otredis/factory.go:20–26  ·  view source on GitHub ↗

Make creates redis.UniversalClient using a specific configuration entry.

(name string)

Source from the content-addressed store, hash-verified

18
19// Make creates redis.UniversalClient using a specific configuration entry.
20func (r Factory) Make(name string) (redis.UniversalClient, error) {
21 client, err := r.Factory.Make(name)
22 if err != nil {
23 return nil, err
24 }
25 return client.(redis.UniversalClient), nil
26}

Callers

nothing calls this directly

Calls 1

MakeMethod · 0.65

Tested by

no test coverage detected