Testcontainers::RedisContainer
Inherits Testcontainers::DockerContainer < Reference < Object
RedisContainer provides a pre-configured container for Redis.
Example:
container = Testcontainers::RedisContainer.new
container.start
host = container.host
port = container.mapped_port(6379)
url = container.redis_url
container.stop
container.remove
Constants
REDIS_DEFAULT_IMAGE = "redis:latest"
REDIS_DEFAULT_PORT = 6379
Constructors
Instance methods
password
SourceReturns the Redis connection URL.
Example: "redis://:password@localhost:6379/0" or "redis://localhost:6379/0"