{"id":25879434,"url":"https://github.com/redis-field-engineering/testcontainers-redis","last_synced_at":"2026-01-11T17:48:49.531Z","repository":{"id":42772046,"uuid":"358332075","full_name":"redis-field-engineering/testcontainers-redis","owner":"redis-field-engineering","description":"Testcontainers module for Redis","archived":false,"fork":false,"pushed_at":"2025-02-19T17:00:24.000Z","size":2097,"stargazers_count":38,"open_issues_count":9,"forks_count":12,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-19T17:33:57.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redis-field-engineering.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-15T16:57:35.000Z","updated_at":"2025-02-19T16:56:05.000Z","dependencies_parsed_at":"2025-01-27T20:31:20.235Z","dependency_job_id":null,"html_url":"https://github.com/redis-field-engineering/testcontainers-redis","commit_stats":null,"previous_names":["redis-field-engineering/testcontainers-redis"],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-field-engineering%2Ftestcontainers-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-field-engineering%2Ftestcontainers-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-field-engineering%2Ftestcontainers-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-field-engineering%2Ftestcontainers-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redis-field-engineering","download_url":"https://codeload.github.com/redis-field-engineering/testcontainers-redis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241509652,"owners_count":19974072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-02T13:09:37.252Z","updated_at":"2026-01-11T17:48:49.505Z","avatar_url":"https://github.com/redis-field-engineering.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Testcontainers Redis\n:linkattrs:\n:project-owner:   redis-field-engineering\n:project-name:    testcontainers-redis\n:project-group:   com.redis\n:project-version: 2.2.4\n\nimage:https://github.com/{project-owner}/{project-name}/actions/workflows/early-access.yml/badge.svg[\"Build Status\",link=\"https://github.com/{project-owner}/{project-name}/actions\"]\nimage:https://img.shields.io/maven-central/v/{project-group}/{project-name}[Download,link=\"https://search.maven.org/#search|ga|1|{project-name}\"]\nimage:https://img.shields.io/github/license/{project-owner}/{project-name}[\"License\",link=\"https://github.com/{project-owner}/{project-name}\"]\n\nTestcontainers Redis is an extension of Testcontainers that supports Redis (Standalone and Cluster), Redis Modules, and Redis Enterprise containers.\n\n== Getting Started\n\n=== Gradle\n\n[source,groovy,subs=\"+attributes\"]\n----\ndependencies {\n    testImplementation \"{project-group}:{project-name}:{project-version}\"\n}\n----\n\n=== Maven\n\n[source,xml,subs=\"+attributes\"]\n----\n\u003cdependency\u003e\n    \u003cgroupId\u003e{project-group}\u003c/groupId\u003e\n    \u003cartifactId\u003e{project-name}\u003c/artifactId\u003e\n    \u003cversion\u003e{project-version}\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n----\n\n== Usage\n\n=== Redis Example\n\n[source,java]\n----\n@Testcontainers\nclass RedisExampleTest {\n\n    @Container\n    private static RedisContainer container = new RedisContainer(\n            RedisContainer.DEFAULT_IMAGE_NAME.withTag(RedisContainer.DEFAULT_TAG));\n\n    @Test\n    void testSomethingUsingLettuce() {\n        // Retrieve the Redis URI from the container\n        String redisURI = container.getRedisURI();\n        RedisClient client = RedisClient.create(redisURI);\n        try (StatefulRedisConnection\u003cString, String\u003e connection = client.connect()) {\n            RedisCommands\u003cString, String\u003e commands = connection.sync();\n            Assertions.assertEquals(\"PONG\", commands.ping());\n        }\n    }\n}\n----\n\n=== Redis Stack Example\n\n[source,java]\n----\n@Testcontainers\nclass RedisStackExampleTest {\n\n    @Container\n    private static RedisStackContainer container = new RedisStackContainer(\n            RedisStackContainer.DEFAULT_IMAGE_NAME.withTag(RedisStackContainer.DEFAULT_TAG));\n\n    @Test\n    void testSomethingUsingLettuceMod() {\n        // Retrieve the Redis URI from the container\n        String redisURI = container.getRedisURI();\n        RedisModulesClient client = RedisModulesClient.create(redisURI);\n        try (StatefulRedisModulesConnection\u003cString, String\u003e connection = client.connect()) {\n            RedisModulesCommands\u003cString, String\u003e commands = connection.sync();\n            commands.ftCreate(\"myIndex\", Field.tag(\"myField\").build());\n            IndexInfo indexInfo = RedisModulesUtils.indexInfo(commands.ftInfo(\"myIndex\"));\n            Assertions.assertEquals(1, indexInfo.getFields().size());\n            Assertions.assertEquals(\"myField\", indexInfo.getFields().get(0).getName());\n        }\n    }\n}\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-field-engineering%2Ftestcontainers-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredis-field-engineering%2Ftestcontainers-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-field-engineering%2Ftestcontainers-redis/lists"}