Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the Redis client and the underlying instance for testing. It provides helper methods for accessing the client, closing the client, and closing the instance.
func NewClient ¶
NewClient creates a new Redis client that connects to an underlying instance for testing.
func NewClientWithConfig ¶
NewClientWithConfig creates a new Redis client that connects to an underlying instance for testing. This method will override the `Addr` property with the address of the underlying container.
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance represents the underlying container that is running the mock redis instance.
func NewInstance ¶
NewInstance creates a new Redis container. It will exponentially backoff until the container is ready to accept connections so that you can handle throttling within CI environments