{"id":13694492,"url":"https://github.com/spring-projects/spring-data-redis","last_synced_at":"2026-02-13T15:20:05.127Z","repository":{"id":38419755,"uuid":"1983092","full_name":"spring-projects/spring-data-redis","owner":"spring-projects","description":"Provides support to increase developer productivity in Java when using Redis, a key-value store. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.","archived":false,"fork":false,"pushed_at":"2025-12-12T11:23:04.000Z","size":30330,"stargazers_count":1840,"open_issues_count":188,"forks_count":1224,"subscribers_count":139,"default_branch":"main","last_synced_at":"2025-12-12T13:18:21.154Z","etag":null,"topics":["ddd","framework","java","redis","spring","spring-data"],"latest_commit_sha":null,"homepage":"https://spring.io/projects/spring-data-redis/","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/spring-projects.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":"CONTRIBUTING.adoc","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.adoc","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2011-07-01T11:57:33.000Z","updated_at":"2025-12-12T04:16:07.000Z","dependencies_parsed_at":"2023-09-21T21:29:08.437Z","dependency_job_id":"31e7b57f-84ca-4ede-957d-8aaab0a0716e","html_url":"https://github.com/spring-projects/spring-data-redis","commit_stats":{"total_commits":3025,"total_committers":181,"mean_commits":"16.712707182320443","dds":0.6538842975206611,"last_synced_commit":"c83f5ac56ffa3b65fcd5cc4ff9b3f83742c97c27"},"previous_names":[],"tags_count":360,"template":false,"template_full_name":null,"purl":"pkg:github/spring-projects/spring-data-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-projects%2Fspring-data-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-projects%2Fspring-data-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-projects%2Fspring-data-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-projects%2Fspring-data-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spring-projects","download_url":"https://codeload.github.com/spring-projects/spring-data-redis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-projects%2Fspring-data-redis/sbom","scorecard":{"id":842415,"data":{"date":"2025-08-11","repo":{"name":"github.com/spring-projects/spring-data-redis","commit":"0471ce87fbf70ebc04bb9c079087f99549270124"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.9,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 20 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.adoc:1","Info: Found linked content: SECURITY.adoc:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.adoc:1","Info: Found text in security policy: SECURITY.adoc:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/project.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: .mvn/wrapper/maven-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/project.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/spring-projects/spring-data-redis/project.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/project.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/spring-projects/spring-data-redis/project.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/project.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/spring-projects/spring-data-redis/project.yml/main?enable=pin","Warn: containerImage not pinned by hash: ci/openjdk17-redis-6.2/Dockerfile:2","Warn: containerImage not pinned by hash: ci/openjdk17-redis-7.2/Dockerfile:2","Warn: containerImage not pinned by hash: ci/openjdk17-valkey-8.0/Dockerfile:2","Warn: containerImage not pinned by hash: ci/openjdk21-redis-6.2/Dockerfile:2","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T20:46:35.921Z","repository_id":38419755,"created_at":"2025-08-23T20:46:35.922Z","updated_at":"2025-08-23T20:46:35.922Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27764777,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ddd","framework","java","redis","spring","spring-data"],"created_at":"2024-08-02T17:01:33.534Z","updated_at":"2025-12-16T13:06:01.297Z","avatar_url":"https://github.com/spring-projects.png","language":"Java","readme":"= Spring Data Redis image:https://jenkins.spring.io/buildStatus/icon?job=spring-data-redis%2Fmain\u0026subject=Build[link=https://jenkins.spring.io/view/SpringData/job/spring-data-redis/] image:https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle\u0026labelColor=02303A[\"Revved up by Develocity\", link=\"https://ge.spring.io/scans?search.rootProjectNames=Spring Data Redis\"]\n\nThe primary goal of the https://spring.io/projects/spring-data/[Spring Data] project is to make it easier to build Spring-powered applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services.\n\nThis module provides integration with the https://redis.io/[Redis] store.\nIt is also tested to work with https://valkey.io/[Valkey] on a best-effort basis as long as Valkey remains largely compatible with Redis.\n\n== Features\n\n* Connection package as low-level abstraction across multiple Redis drivers (https://github.com/lettuce-io/lettuce-core[Lettuce] and https://github.com/redis/jedis[Jedis]).\n* Exception translation to Spring’s portable Data Access exception hierarchy for Redis driver exceptions\n* https://docs.spring.io/spring-data/redis/reference/redis/template.html[`RedisTemplate`] that provides a high level abstraction for performing various Redis operations, exception translation and serialization support.\n* Pubsub support (such as a MessageListenerContainer for message-driven POJOs).\n* https://docs.spring.io/spring-data/redis/reference/redis/connection-modes.html#redis:sentinel[Redis Sentinel] and https://docs.spring.io/spring-data/redis/reference/redis/connection-modes.html#cluster.enable[Redis Cluster] support.\n* Reactive API using the Lettuce driver.\n* JDK, String, JSON and Spring Object/XML mapping serializers.\n* JDK Collection implementations on top of Redis.\n* Atomic counter support classes.\n* Sorting and Pipelining functionality.\n* Dedicated support for SORT, SORT/GET pattern and returned bulk values.\n* Redis implementation for Spring 3.1 cache abstraction.\n* Automatic implementation of `Repository` interfaces including support for custom finder methods using `@EnableRedisRepositories`.\n* CDI support for repositories.\n\n== Code of Conduct\n\nThis project is governed by the https://github.com/spring-projects/.github/blob/e3cc2ff230d8f1dca06535aa6b5a4a23815861d4/CODE_OF_CONDUCT.md[Spring Code of Conduct]. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.\n\n== Getting Started\n\nHere is a quick teaser of an application using Spring Data Redis in Java:\n\n[source,java]\n----\npublic class Example {\n\n    // inject the actual template\n    @Autowired\n    private RedisTemplate\u003cString, String\u003e redisTemplate;\n\n    // inject the template as ListOperations\n    // can also inject as Value, Set, ZSet, and HashOperations\n    @Resource(name=\"redisTemplate\")\n    private ListOperations\u003cString, String\u003e listOps;\n\n    public void addLink(String userId, URL url) {\n        listOps.leftPush(userId, url.toExternalForm());\n        // or use template directly\n        redisTemplate.boundListOps(userId).leftPush(url.toExternalForm());\n    }\n}\n\n@Configuration\nclass ApplicationConfig {\n\n  @Bean\n  public RedisConnectionFactory redisConnectionFactory() {\n    return new LettuceConnectionFactory();\n  }\n}\n----\n\n=== Maven configuration\n\nAdd the Maven dependency:\n\n[source,xml]\n----\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.springframework.data\u003c/groupId\u003e\n  \u003cartifactId\u003espring-data-redis\u003c/artifactId\u003e\n  \u003cversion\u003e${version}\u003c/version\u003e\n\u003c/dependency\u003e\n----\n\nIf you'd rather like the latest snapshots of the upcoming major version, use our Maven snapshot repository and declare the appropriate dependency version.\n\n[source,xml]\n----\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.springframework.data\u003c/groupId\u003e\n  \u003cartifactId\u003espring-data-redis\u003c/artifactId\u003e\n  \u003cversion\u003e${version}-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n\n\u003crepository\u003e\n  \u003cid\u003espring-snapshot\u003c/id\u003e\n  \u003cname\u003eSpring Snapshot Repository\u003c/name\u003e\n  \u003curl\u003ehttps://repo.spring.io/snapshot\u003c/url\u003e\n\u003c/repository\u003e\n----\n\n== Getting Help\n\nHaving trouble with Spring Data? We’d love to help!\n\n* Check the\nhttps://docs.spring.io/spring-data/redis/reference/[reference documentation], and https://docs.spring.io/spring-data/redis/docs/current/api/[Javadocs].\n* Learn the Spring basics – Spring Data builds on Spring Framework, check the https://spring.io[spring.io] web-site for a wealth of reference documentation.\nIf you are just starting out with Spring, try one of the https://spring.io/guides[guides].\n* If you are upgrading, check out the https://github.com/spring-projects/spring-data-commons/wiki#release-notes[Release notes] for \"`new and noteworthy`\" features.\n* Ask a question - we monitor https://stackoverflow.com[stackoverflow.com] for questions tagged with https://stackoverflow.com/tags/spring-data[`spring-data-redis`].\n* Report bugs with Spring Data Redis at https://github.com/spring-projects/spring-data-redis/issues/new[github.com/spring-projects/spring-data-redis].\n\n== Reporting Issues\n\nSpring Data uses Github as issue tracking system to record bugs and feature requests.\nIf you want to raise an issue, please follow the recommendations below:\n\n* Before you log a bug, please search the https://github.com/spring-projects/spring-data-redis/issues[issue tracker] to see if someone has already reported the problem.\n* If the issue does not already exist, https://github.com/spring-projects/spring-data-redis/issues/new[create a new issue].\n* Please provide as much information as possible with the issue report, we like to know the version of Spring Data that you are using, the JVM version, Stacktrace, etc.\n* If you need to paste code, or include a stack trace use https://guides.github.com/features/mastering-markdown/[Markdown] code fences +++```+++.\n* If possible try to create a test-case or project that replicates the issue.\nAttach a link to your code or a compressed file containing your code.\n\n== Building from Source\n\nYou don’t need to build from source to use Spring Data (binaries in https://repo.spring.io[repo.spring.io]), but if you want to try out the latest and greatest, Spring Data can be easily built with the https://github.com/takari/maven-wrapper[maven wrapper].\nYou also need JDK 17 or above and `make`.\nThe local build environment is managed within a `Makefile` to download, build and spin up Redis in various configurations (Standalone, Sentinel, Cluster, etc.)\n\n[source,bash]\n----\n $ make test\n----\n\nThe preceding command runs a full build.\nYou can use `make start`, `make stop`, and `make clean` commands to control the environment yourself.\nThis is useful if you want to avoid constant server restarts.\nOnce all Redis instances have been started, you can either run tests in your IDE or the full Maven build:\n\n[source,bash]\n----\n $ ./mvnw clean install\n----\n\nIf you want to build with the regular `mvn` command, you will need https://maven.apache.org/run-maven/index.html[Maven v3.8.0 or above].\n\n_Also see link:CONTRIBUTING.adoc[CONTRIBUTING.adoc] if you wish to submit pull requests, and in particular please sign the https://cla.pivotal.io/sign/spring[Contributor’s Agreement] before your first non-trivial change._\n\n=== Building reference documentation\n\nBuilding the documentation builds also the project without running tests.\n\n[source,bash]\n----\n $ ./mvnw clean install -Pantora\n----\n\nThe generated documentation is available from `target/antora/site/index.html`.\n\n== Guides\n\nThe https://spring.io/[spring.io] site contains several guides that show how to use Spring Data step-by-step:\n\n* https://spring.io/guides/gs/messaging-redis/[Messaging with Redis]: Learn how to use Redis as a message broker.\n* https://spring.io/guides/gs/spring-data-reactive-redis/[Accessing Data Reactively with Redis]: Learn how to reactively interface with Redis and Spring Data.\n\n== Examples\n\n* https://github.com/spring-projects/spring-data-examples/[Spring Data Examples] contains example projects that explain specific features in more detail.\n\n== License\n\nSpring Data Redis is Open Source software released under the https://www.apache.org/licenses/LICENSE-2.0.html[Apache 2.0 license].\n","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspring-projects%2Fspring-data-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspring-projects%2Fspring-data-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspring-projects%2Fspring-data-redis/lists"}