Spring Data Redis
=======================
The primary goal of the [Spring Data](http://projects.spring.io/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] (http://redis.io/) store.
# Docs
You can find out more details from the [user documentation](http://docs.spring.io/spring-data/data-redis/docs/current/reference/html/) or by browsing the [javadocs](http://docs.spring.io/spring-data/data-redis/docs/current/api/).
# Examples
For examples on using the Spring Data Key Value, see the dedicated project, also available on [GitHub](https://github.com/spring-projects/spring-data-keyvalue-examples)
# Artifacts
* Maven:
~~~~~ xml
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>${version}</version>
</dependency>
<!-- used for nightly builds -->
<repository>
<id>spring-maven-snapshot</id>
<snapshots><enabled>true</enabled></snapshots>
<name>Springframework Maven SNAPSHOT Repository</name>
<url>http://repo.spring.io/libs-release</url>
</repository>
<!-- used for milestone/rc releases -->
<repository>
<id>spring-maven-milestone</id>
<name>Springframework Maven Milestone Repository</name>
<url>http://repo.spring.io/libs-milestone</url>
</repository>
~~~~~
* Gradle:
~~~~~ groovy
repositories {
maven { url "http://repo.spring.io/libs-milestone" }
maven { url "http://repo.spring.io/libs-snapshot" }
}
// used for nightly builds
dependencies {
compile "org.springframework.data:spring-data-redis:${version}"
}
~~~~~
# Usage (for the impatient)
* Configure the Redis connector to use (here [jedis](https://github.com/xetorthio/jedis)):
~~~~~ xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="jedisFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"/>
<bean id="redisTemplate" class="org.springframework.data.redis.core.RedisTemplate"
p:connection-factory="jedisFactory"/>
</beans>
~~~~~
* Use `RedisTemplate` to interact with the Redis store:
~~~~~ java
String random = template.randomKey();
template.set(random, new Person("John", "Smith"));
~~~~~
* Use Redis 'views' to execute specific operations based on the underlying Redis type:
~~~~~ java
ListOperations<String, Person> listOps = template.listOps();
listOps.rightPush(random, new Person("Jane", "Smith"));
List<Person> peopleOnSecondFloor = listOps.range("users:floor:2", 0, -1);
~~~~~
# Building
Spring Data Redis uses Gradle as its build system. To build the system simply run:
gradlew
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
or
gradlew idea
depending on your editor.
# Contributing
Here are some ways for you to get involved in the community:
* Get involved with the Spring community on the Stackoverflow. Please help out on the [spring-data-redis](http://stackoverflow.com/questions/tagged/spring-data-redis) tag by responding to questions and joining the debate.
* Create [JIRA](https://jira.spring.io/browse/DATAREDIS) tickets for bugs and new features and comment and vote on the ones that you are interested in.
* Watch for upcoming articles on Spring by [subscribing](https://spring.io/blog) to spring.io.
Github is for social coding: if you want to write code, we encourage contributions through pull requests from [forks of this repository](http://help.github.com/forking/). If you want to contribute code this way, read the Spring Framework [contributor guidelines] (https://github.com/spring-projects/spring-framework/blob/master/CONTRIBUTING.md).
# Staying in touch
Follow the project team ([@SpringData](http://twitter.com/springdata)) on Twitter. In-depth articles can be
found at the Spring [team blog](https://spring.io/blog), and releases are announced via our [news feed](https://spring.io/blog/category/news).
没有合适的资源?快使用搜索试试~ 我知道了~
spring-data-redis-1.6.0.RELEASE最新稳定版(个人测试通过)
共429个文件
java:369个
adoc:16个
xml:10个
需积分: 50 27 下载量 152 浏览量
2017-01-23
14:17:22
上传
评论 1
收藏 749KB ZIP 举报
温馨提示
spring-data-redis-1.6.0.RELEASE最新稳定版(个人测试通过)
资源推荐
资源详情
资源评论
收起资源包目录
spring-data-redis-1.6.0.RELEASE最新稳定版(个人测试通过) (429个子文件)
redis.adoc 22KB
redis-messaging.adoc 10KB
getting-started.adoc 5KB
redis-transactions.adoc 4KB
redis-scripting.adoc 3KB
pipelining.adoc 3KB
appendix-command-reference.adoc 2KB
index.adoc 1KB
why-sdr.adoc 799B
new-features.adoc 791B
introduction.adoc 426B
requirements.adoc 346B
preface.adoc 302B
appendix-schema.adoc 279B
introduction.adoc 186B
introduction.adoc 168B
gradlew.bat 2KB
spring-javadoc.css 2KB
spring-redis.gif 581B
.gitignore 131B
build.gradle 10KB
maven.gradle 3KB
settings.gradle 38B
gradlew 5KB
spring.handlers 105B
overview.html 768B
gradle-wrapper.jar 49KB
LettuceConnection.java 118KB
JedisConnection.java 95KB
AbstractConnectionIntegrationTests.java 74KB
DefaultStringRedisConnection.java 73KB
SrpConnection.java 70KB
DefaultStringRedisConnectionTests.java 53KB
DefaultStringRedisConnectionPipelineTxTests.java 45KB
DefaultStringRedisConnectionPipelineTests.java 39KB
DefaultStringRedisConnectionTxTests.java 37KB
JredisConnection.java 34KB
RedisTemplate.java 33KB
RedisMessageListenerContainer.java 32KB
RedisTemplateTests.java 26KB
JRedisConnectionIntegrationTests.java 25KB
Base64.java 22KB
RedisConnectionUnitTests.java 22KB
RedisCache.java 19KB
LettuceConverters.java 16KB
RedisZSetCommands.java 16KB
RedisPropertiesTests.java 15KB
SrpConverters.java 14KB
MessageListenerAdapter.java 14KB
JedisConnectionFactory.java 14KB
RedisMapTests.java 14KB
AbstractRedisZSetTest.java 13KB
RedisConnectionUtils.java 13KB
JedisConnectionIntegrationTests.java 13KB
AbstractRedisMapTests.java 13KB
LettuceSubscriptionTests.java 13KB
LettuceConnectionFactory.java 12KB
SrpSubscriptionTests.java 12KB
DefaultZSetOperations.java 12KB
LettuceConnectionIntegrationTests.java 12KB
CollectionTestParams.java 12KB
AbstractDefaultScriptExecutorTests.java 11KB
JedisSubscriptionTests.java 11KB
AbstractRedisListTests.java 11KB
RedisOperations.java 11KB
JedisConverters.java 10KB
StringRedisConnection.java 10KB
MessageListenerTest.java 10KB
RedisCacheManager.java 10KB
SrpUtils.java 10KB
PubSubResubscribeTests.java 9KB
JedisUtils.java 9KB
DefaultRedisList.java 9KB
JedisConnectionPipelineIntegrationTests.java 9KB
DefaultValueOperationsTests.java 9KB
RedisAtomicLong.java 9KB
JedisConvertersUnitTests.java 9KB
RedisAtomicDouble.java 8KB
AbstractRedisCollectionTests.java 8KB
DefaultZSetOperationsTests.java 8KB
RedisAtomicInteger.java 8KB
AbstractOperations.java 8KB
RedisCommand.java 8KB
DefaultListOperations.java 8KB
DefaultListOperationsTests.java 8KB
LettuceConnectionFactoryTests.java 8KB
DefaultLettucePool.java 8KB
AbstractRedisSetTests.java 8KB
DefaultSetOperations.java 8KB
DefaultRedisZSet.java 7KB
RedisCacheTest.java 7KB
DefaultRedisMap.java 7KB
DefaultHashOperations.java 7KB
SubscriptionConnectionTests.java 7KB
DefaultValueOperations.java 7KB
JedisConnectionTransactionIntegrationTests.java 7KB
RedisProperties.java 7KB
RedisAtomicDoubleTests.java 7KB
JedisConnectionUnitTestSuite.java 7KB
DefaultSetOperationsTests.java 7KB
共 429 条
- 1
- 2
- 3
- 4
- 5
资源评论
uio1235456
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 什么是移动应用开发-关于移动应用开发的相关介绍
- 第二组汇报 PPT.pptx
- 什么是大数据开发-相关介绍-关于大数据开发的相关介绍
- 什么是软件测试-相关介绍-关于软件测试的相关介绍
- 前端开发-什么是前端开发-关于前端开发的一些相关介绍
- Sora AI-关于文生视频的使用场景说明
- suno AI文生视频的相关教程和介绍使用
- 什么是后端开发-关于后端开发的一些小介绍分享
- Jurassic Pack Vol. II Dinosaurs 侏罗纪包卷恐龙二号Unity游戏模型资源unitypackage
- Jurassic Pack Vol. III Dinosaurs 侏罗纪包卷恐龙三号Unity游戏模型资源unitypackag
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功