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

Method addWithKey

internal/routing/aggregator.go:817–826  ·  view source on GitHub ↗
(key string, result interface{}, err error)

Source from the content-addressed store, hash-verified

815}
816
817func (a *DefaultKeyedAggregator) addWithKey(key string, result interface{}, err error) error {
818 if err != nil && a.firstErr == nil {
819 a.firstErr = err
820 return nil
821 }
822 if err == nil {
823 a.results[key] = result
824 }
825 return nil
826}
827
828func (a *DefaultKeyedAggregator) AddWithKey(key string, result interface{}, err error) error {
829 a.mu.Lock()

Callers 2

AddWithKeyMethod · 0.95
BatchAddWithKeyOrderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected