diff --git a/spring-boot-autoconfigure/pom.xml b/spring-boot-autoconfigure/pom.xml
index b1211438cb..6ec743b350 100644
--- a/spring-boot-autoconfigure/pom.xml
+++ b/spring-boot-autoconfigure/pom.xml
@@ -111,6 +111,16 @@
spring-data-mongodb
true
+
+ org.springframework.data
+ spring-data-redis
+ true
+
+
+ com.lambdaworks
+ lettuce
+ true
+
org.springframework.security
spring-security-acl
diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/redis/RedisAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/redis/RedisAutoConfiguration.java
new file mode 100644
index 0000000000..2fab4c9fa7
--- /dev/null
+++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/redis/RedisAutoConfiguration.java
@@ -0,0 +1,120 @@
+/*
+ * Copyright 2012-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.springframework.boot.autoconfigure.redis;
+
+import java.net.UnknownHostException;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.data.redis.connection.RedisConnectionFactory;
+import org.springframework.data.redis.connection.lettuce.LettuceConnection;
+import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
+import org.springframework.data.redis.core.RedisOperations;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.data.redis.core.StringRedisTemplate;
+
+/**
+ * {@link EnableAutoConfiguration Auto-configuration} for Spring Data's redis support.
+ *
+ * @author Dave Syer
+ */
+@Configuration
+@ConditionalOnClass({ LettuceConnection.class, RedisOperations.class })
+public class RedisAutoConfiguration {
+
+ @Configuration
+ @EnableConfigurationProperties(RedisProperties.class)
+ protected static class RedisConfiguration {
+
+ @Autowired
+ private RedisProperties config;
+
+ @Bean
+ @ConditionalOnMissingBean(RedisConnectionFactory.class)
+ RedisConnectionFactory redisConnectionFactory() throws UnknownHostException {
+ LettuceConnectionFactory factory = new LettuceConnectionFactory(
+ this.config.getHost(), this.config.getPort());
+ if (this.config.getPassword() != null) {
+ factory.setPassword(this.config.getPassword());
+ }
+ return factory;
+ }
+
+ @Bean
+ @ConditionalOnMissingBean(RedisOperations.class)
+ RedisOperations
+
+ com.lambdaworks
+ lettuce
+ ${lettuce.version}
+
javax.servlet
javax.servlet-api
@@ -397,6 +404,11 @@
spring-data-mongodb
${spring-data-mongo.version}
+
+ org.springframework.data
+ spring-data-redis
+ ${spring-data-redis.version}
+
org.springframework.integration
spring-integration-core
diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml
index 49eea2e2bd..06949189a9 100644
--- a/spring-boot-starters/pom.xml
+++ b/spring-boot-starters/pom.xml
@@ -26,6 +26,7 @@
spring-boot-starter-mobile
spring-boot-starter-actuator
spring-boot-starter-parent
+ spring-boot-starter-redis
spring-boot-starter-security
spring-boot-starter-shell-remote
spring-boot-starter-test
diff --git a/spring-boot-starters/spring-boot-starter-redis/.gitignore b/spring-boot-starters/spring-boot-starter-redis/.gitignore
new file mode 100644
index 0000000000..ea8c4bf7f3
--- /dev/null
+++ b/spring-boot-starters/spring-boot-starter-redis/.gitignore
@@ -0,0 +1 @@
+/target
diff --git a/spring-boot-starters/spring-boot-starter-redis/pom.xml b/spring-boot-starters/spring-boot-starter-redis/pom.xml
new file mode 100644
index 0000000000..b1007ba977
--- /dev/null
+++ b/spring-boot-starters/spring-boot-starter-redis/pom.xml
@@ -0,0 +1,30 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starters
+ 0.5.0.BUILD-SNAPSHOT
+
+ spring-boot-starter-redis
+ jar
+
+ ${basedir}/../..
+
+
+
+ ${project.groupId}
+ spring-boot-starter
+ ${project.version}
+
+
+ org.springframework.data
+ spring-data-redis
+
+
+ com.lambdaworks
+ lettuce
+
+
+