Description
Valkey is an open source (BSD) high-performance key/value datastore that supports a variety of workloads such as caching, message queues, and can act as a primary database. Valkey can run as either a standalone daemon or in a cluster, with options for replication and high availability.Examples
Dependency:
go get github.com/testcontainers/testcontainers-go/modules/valkey
Usage:
valkeyContainer, err := valkey.Run(context.Background(), "docker.io/valkey/valkey:7.2.5")
Dependency:
<dependency>
<groupId>io.github.ss-bhatt</groupId>
<artifactId>testcontainers-valkey</artifactId>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
Usage:
try (ValkeyContainer valkey = new ValkeyContainer(DockerImageName.parse("valkey/valkey:8"))) {
valkey.start();
// use valkey.getConnectionString()
}
Dependency:
npm install @testcontainers/valkey --save-dev
Usage:
const container = await new ValkeyContainer("valkey/valkey:8.0").start();
Dependency:
cargo add -F valkey --dev testcontainers-modules
Usage:
use redis::Commands;
testcontainers_modules::valkey::Valkey::default().start()