// NewRedisClientOr initialize redisclient.Client instance.
NewRedisClientOr initialize redisclient.Client instance.
// NewRedisClientOr initialize redisclient . Client instance .
func NewRedisClientOr(config *redisc.Config, ops ...redisc.Option) (*redis.Client, error) {
	var err error
	once.Do(func() {
		inst, err = redisc.NewConnection(config, ops...)
	})
	if err != nil {
		return nil, err
	}
	if inst == nil {
		return nil, fmt.Errorf("initialize redisclient instance to failed")
	}
	return inst, nil
}
func NewRedisClientOr ( config * redisc . Config , ops ... redisc . Option ) ( * redis . Client , error ) { var err error once . Do ( func ( ) { inst , err = redisc . NewConnection ( config , ops ... ) } ) if err != nil { return nil , err } if inst == nil { return nil , fmt . Errorf ( " " ) } return inst , nil }
NewRedisClientOr initialize redisclient.Client instance.
NewRedisClientOr initialize redisclient . Client instance .