# Valkey ## Install ```bash npm install @testcontainers/valkey --save-dev ``` ## Examples These examples use the following libraries: - [redis](https://www.npmjs.com/package/redis) npm install redis Choose an image from the [container registry](https://hub.docker.com/r/valkey/valkey) and substitute `IMAGE`. ### Set/get a value [](../../packages/modules/valkey/src/valkey-container.test.ts) inside_block:valkeyStartContainer ### With password [](../../packages/modules/valkey/src/valkey-container.test.ts) inside_block:valkeyWithPassword ### With username and password [](../../packages/modules/valkey/src/valkey-container.test.ts) inside_block:valkeyWithUsernameAndPassword ### With persistent data [](../../packages/modules/valkey/src/valkey-container.test.ts) inside_block:valkeyWithPersistentData ### With predefined data [](../../packages/modules/valkey/src/valkey-container.test.ts) inside_block:valkeyWithPredefinedData ### Execute a command inside the container [](../../packages/modules/valkey/src/valkey-container.test.ts) inside_block:valkeyExecuteCommand