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

Method Subscribe

universal.go:355–355  ·  view source on GitHub ↗
(ctx context.Context, channels ...string)

Source from the content-addressed store, hash-verified

353 Do(ctx context.Context, args ...interface{}) *Cmd
354 Process(ctx context.Context, cmd Cmder) error
355 Subscribe(ctx context.Context, channels ...string) *PubSub
356 PSubscribe(ctx context.Context, channels ...string) *PubSub
357 SSubscribe(ctx context.Context, channels ...string) *PubSub
358 Close() error

Callers 15

pubsub_test.goFile · 0.65
initConnMethod · 0.65
SubscribeMethod · 0.65
SubscribeMethod · 0.65
sentinel_test.goFile · 0.65
BenchmarkPubSubCreationFunction · 0.65
BenchmarkPubSubReuseFunction · 0.65

Calls

no outgoing calls

Tested by 8

BenchmarkPubSubCreationFunction · 0.52
BenchmarkPubSubReuseFunction · 0.52
ExamplePubSubFunction · 0.52
ExamplePubSub_ReceiveFunction · 0.52