View Source Testcontainers.Container.RedisContainer (testcontainers v1.1.3)

Functions to build and interact with Redis containers.

Summary

Functions

Returns the connection url to connect to Redis from the host machine.

Returns the port on the host machine where the Redis container is listening.

Functions

Link to this function

connection_url(container)

View Source

Returns the connection url to connect to Redis from the host machine.

Link to this function

new(image \\ "redis:6.0-alpine", opts \\ [])

View Source

Creates a Redis container.

Runs Redis 6.0 by default, but a custom image can also be set.

Returns the port on the host machine where the Redis container is listening.