Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsClusterMode ¶ added in v1.4.0
func IsClusterMode() bool
IsClusterMode reports whether the temporal tests are running against a Redis Cluster (TEST_ENABLE_CLUSTER=true) rather than a single node.
It exists so tests can account for cluster-only semantics. Notably, PUBLISH's reply counts only subscribers connected to the same node as the publisher; go-redis v9.11+ treats PUBLISH as keyless and routes it to a random node (while subscribers bind to the channel's slot node), so with subscribers present that count is non-deterministic even though delivery is unaffected.
Types ¶
type StubConnector ¶
type StubConnector struct{}
func (*StubConnector) As ¶
func (m *StubConnector) As(i interface{}) bool
func (*StubConnector) Disconnect ¶
func (m *StubConnector) Disconnect(ctx context.Context) error
func (*StubConnector) Type ¶
func (m *StubConnector) Type() string
Click to show internal directories.
Click to hide internal directories.