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.
Pull request Compare This branch is 926 commits behind spring-projects:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Spring Data Redis

The primary goal of the 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. This modules provides integration with the [Redis] ( store.


You can find out more details from the user documentation or by browsing the javadocs.


For examples on using the Spring Data Key Value, see the dedicated project, also available on GitHub


  • Maven:

<!-- used for nightly builds -->
  <name>Springframework Maven SNAPSHOT Repository</name>

<!-- used for milestone/rc releases -->
  <name>Springframework Maven Milestone Repository</name>
  • Gradle:
repositories {
   mavenRepo name: "spring-snapshot", urls: ""
   mavenRepo name: "spring-milestone", urls: ""

// used for nightly builds
dependencies {
   compile "${version}"

Latest GA release is 1.0.0.RELEASE
Latest nightly is 1.0.1.BUILD-SNAPSHOT

Usage (for the impatient)

  • Configure the Redis connector to use (here jedis):
<beans xmlns=""
  <bean id="jedisFactory" class=""/>
  <bean id="redisTemplate" class=""
  • Use RedisTemplate to interact with the Redis store:
String random = template.randomKey();
template.set(random, new Person("John", "Smith"));
  • Use Redis 'views' to execute specific operations based on the underlying Redis type:
ListOperations<String, Person> listOps = template.listOps();
listOps.rightPush(random, new Person("Jane", "Smith"));
List<Person> peopleOnSecondFloor = listOps.range("users:floor:2", 0, -1);


Spring Hadoop uses Gradle as its build system. To build the system simply run:


from the project root folder. This will compile the sources, run the tests and create the artifacts.

To generate IDE-specific files, use

gradlew eclipse


gradlew idea 

depending on your editor.


Here are some ways for you to get involved in the community:

  • Get involved with the Spring community on the Spring Community Forums. Please help out on the forum by responding to questions and joining the debate.
  • Create JIRA tickets for bugs and new features and comment and vote on the ones that you are interested in.
  • Github is for social coding: if you want to write code, we encourage contributions through pull requests from forks of this repository. If you want to contribute code this way, please reference a JIRA ticket as well covering the specific issue you are addressing.
  • Watch for upcoming articles on Spring by subscribing to

Before we accept a non-trivial patch or pull request we will need you to sign the contributor's agreement. Signing the contributor's agreement does not grant anyone commit rights to the main repository, but it does mean that we can accept your contributions, and you will get an author credit if we do. Active contributors might be asked to join the core team, and given the ability to merge pull requests.