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

Method SSubscribe

redis.go:1617–1623  ·  view source on GitHub ↗

SSubscribe Subscribes the client to the specified shard channels. Channels can be omitted to create empty subscription.

(ctx context.Context, channels ...string)

Source from the content-addressed store, hash-verified

1615// SSubscribe Subscribes the client to the specified shard channels.
1616// Channels can be omitted to create empty subscription.
1617func (c *Client) SSubscribe(ctx context.Context, channels ...string) *PubSub {
1618 pubsub := c.pubSub()
1619 if len(channels) > 0 {
1620 _ = pubsub.SSubscribe(ctx, channels...)
1621 }
1622 return pubsub
1623}
1624
1625//------------------------------------------------------------------------------
1626

Callers

nothing calls this directly

Calls 2

pubSubMethod · 0.95
SSubscribeMethod · 0.65

Tested by

no test coverage detected