Spring-data-redis使用指南

-
Spring-data-redis使用指南
5.10. Redis transactions 23 5.10.1.@ Transactional Support.…………………24 5. 11. pipelining 25 5. 12. Redis Scripting 26 5.13. Support Classes.......... ,,,,,,,,,,,,,,,,,,,,27 5. 13.1. Support for Spring Cache Abstraction .28 6. Redis cluster.,,,,,,,,,,,,,,,,,,,,,,,,,,,, 30 6.1. Enabling Redis Cluster............. ,,,,,,,,,,,,,,,,,,,,,.30 6. 2. Working With Redis Cluster Connection 32 6.3. Working With Redis Template and clusterOperations,................ 34 7. Redis repositories 36 7.1. Usage....,. ,,,,,36 7.2. Object to Hash Mapping 38 7.3. Keyspace ..,,,..,41 7.4. Secondary Indexes..……………………42 7.4.1. Simple property Index .43 7.4.2. Geospatial Index 45 7.5. Time to live,,,,,,,,,,,,,,,,,,,, 鲁自 46 7.6. Persisting References .,....48 7.7. Persisting Partial Updates. .........................................................48 7.8. Queries and Query Methods ,,.,,,49 7.9. Redis Repositories running on Cluster 51 7.10. CDI integration......... ,4鲁垂 51 Appendixes 53 Appendix A: Schema ,54 Core schema ·t,自D ,,,,,,,,,54 Appendix B: Command Reference 59 Supported commands…… 59 o 2011-2016 The original authors Copies of this document may be made for your own use and for NOTE distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically Preface The Spring Data Redis project applies core Spring concepts to the development of solutions using a receiving messages. You will notice similarities to the jDBC support in the Spring Framewor and key-value style data store. We provide a"template"as a high-level abstraction for sendin Chapter 1. New Features New and noteworthy in the latest releases 1.1. New in Spring Data Redis 1.8 Upgrade to jedis 2.9 Upgrade to Lettuce 4.2(Note: Lettuce 4.2 requires java 8). Support for redis geo commands Support for Geospatial Indexes using Spring Data Repository abstractions(see Geospatial Index) MappingRedisConverter based HashMapper implementation(see Hash mapping) Support for PartialUpdate in repository support(see Persisting Partial Updates SSL support for connections to Redis cluster Support for client name via Connection Factory when using Jedis 1.2. New in Spring data Redis 1.7 Support for Rediscluster Support for Spring data Repository abstractions(see Redis repositories 1.3. New in Spring data Redis 1.6 The Lettuce redis driver switched from wg/lettuce to mp911de/lettuce Support for ZRANGE BYLEX Enhanced range operations for zseT s including +inf /-inf. Performance improvements in RedisCache now releasing connections earlier Generic Jackson2 Redisserializer making use of Jackson's polymorphic deserialization 1.4. New in Spring Data Redis 1.5 Add support for Redis hyperlogLog commands PFADD, PF COUNT and PFMERGE Configurable JavaT ype lookup for Jackson based RedisSerializers Property Source based configuration for connecting to Redis Sentinel (see: Redis Sentinel Support) Introduction This document is the reference guide for Spring Data Redis(SDR) Support. It explains Key value module concepts and semantics and the syntax for various stores namespaces For an introduction to key value stores or Spring, or Spring Data examples, please refer to Getting Started this documentation refers only to Spring Data Redis Support and assumes the user is familiar with the key value storages and Spring concepts Chapter 2. Why Spring Data Redis? The Spring Framework is the leading full-stack Java/JEE application framework, It provides a lightweight container and a non-invasive programming model enabled by the use of dependency njection, AOP, and portable service abstractions. NoSQL storages provide an alternative to classical rdBMs for horizontal scalability and speed. In terms of implementation, Key value stores represent one of the largest (and oldest)members in the NOSQL Space. The Spring Data Redis (or sDr) framework makes it easy to write Spring applications that use the Redis key value store by eliminating the redundant tasks and boiler plate code required for interacting with the store through Springs excellent infrastructure support Chapter 3 Requirements Spring Data Redis 1. x binaries requires DK level 6.0 and above, and Spring Framework 43. 8. RELEASE and above In terms of key value stores, Redis 2.6. x or higher is required. Spring Data Redis is currently tested against the latest 3.2 release Chapter 4. Getting Started Learning a new framework is not always straight forward. In this section, we (the Spring Data team) tried to provide, what we think is, an easy to follow guide for starting with the Spring data Redis module. Of course, feel free to create your own learning path'as you see fit and, if possible please report back any improvements to the documentation that can help others 4.1. First Steps As explained in Why Spring Data Redis?, Spring Data Redis (SDR) provides integration between Spring framework and the Redis key value store. Thus, it is important to become acquainted with both of these frameworks(storages or environments depending on how you want to name them) Throughout the SDr documentation, each section provides links to resources relevant however, it is best to become familiar with these topics beforehand 4.1.1. Knowing Spring Spring data uses heavily Spring framework's core functionality, such as the IoC container, resource abstract or AoP infrastructure. While it is not important to know the Spring APIs, understanding the concepts behind them is At a minimum, the idea behind loc should be familiar. That being said, the more knowledge one has about the Spring, the faster she will pick up Spring Data Redis. Besides the very comprehensive (and sometimes disarming) documentation that explains in detail the Spring Framework, there are a lot of articles, blog entries and books on the matter-take a look at the Spring Guides home page for more information. In general, this should be the starting point for developers wanting to try Spring DR 4.1.2. Knowing NosQL and Key value stores NoSQL stores have taken the storage world by storm. It is a vast domain with a plethora of solutions, terms and patterns (to make things worse even the term itself has multiple meanings) While some of the principles are common, it is crucial that the user is familiar to some degree with the stores supported by SDR. The best way to get acquainted with these solutions is to read their documentation and follow their examples- it usually doesn't take more then 5-10 minutes to go through them and if you are coming from an RDMBS-only background many times these exercises can be an eye opener. 4.1.3. Trying Out The Samples One can find various samples for key value stores in the dedicated example repo, at http:/github.com/spring-projects/spring-data-keyvalue-examples.ForSpringDataRedis,ofinterest is the retwisj sample, a Twitter-clone built on top of Redis which can be run locally or be deployed into the cloud. See its documentation, the following blog entry or the live instance for more formation 4.2. Need Help? If you encounter issues or you are just looking for advice, feel free to use one of the links below: 4. 2.1. Community Support The Spring Data tag on Stackoverflow is a message board for all Spring Data (not just Redis)users to share information and help each other. Note that registration is needed only for posting. 4.2.2. Professional Support Professional, from-the-source support, with guaranteed response time, is available from Pivotal Software, Inc, the company behind Spring Data and spring 4.3. Following Development For information on the Spring Data source code repository, nightly builds and snapshot artifacts please see the Spring data home page You can help make Spring Data best serve the needs of the Spring community by interacting with developers on Stackoverflow at either spring-data or spring-data-redis If you encounter a bug or want to suggest an improvement, please create a ticket on the Spring Data issue tracker To stay up to date with the latest news and announcements in the Spring eco system, subscribe to the spring Community portal Lastly, you can follow the Spring blog or the project team (Thomas and Christoph) on Twitter Reference documentation Document structure This part of the reference documentation explains the core functionality offered by Spring Data Redis Redis support introduces the Redis module feature set.

-
2018-08-10
35KB
抢茅台jd_seckill-master 来自huanghyw
2021-01-04本仓库发布的jd_seckill项目中涉及的任何脚本,仅用于测试和学习研究,禁止用于商业用途,不能保证其合法性,准确性,完整性和有效性,请根据情况自行判断。 本项目内所有资源文件,禁止任何公众号、自媒
7.60MB
.net版微信红包开发Demo
2015-01-29.net做的微信红包开发,里面附带了测试程序,如果你有审批好的商户信息,只需要在config文件中配置相应的参数即可运行
64B
python爬虫20个案例
2018-03-25讲诉python爬虫的20个案例 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
Python进阶-Pandas数据分析库
2018-12-18您观看课程学习后 免费入群领取【超全Python资料包+17本学习电子书】 Pandas是python中非常常用的数据分析库,在数据分析,机器学习,深度学习等领域经常被使用。本课程会讲解到pandas中最核心的一些知识点,包括Series以及DataFrame的构建,赋值,操作,选择数据,合并等等,以及使用pandas对文件进行读取和写入,使用pandas绘图等等。
111.65MB
DirectX修复工具V4.0增强版
2020-06-13DirectX修复工具(DirectX Repair)是一款系统级工具软件,简便易用。本程序为绿色版,无需安装,可直接运行。 本程序的主要功能是检测当前系统的DirectX状态,如果发现异常则进行修复
14.83MB
Python界面版学生管理系统
2018-10-27前不久上传了一个控制台版本的学生管理系统,这个是Python界面版学生管理系统,这个是使用pycharm开发的一个有界面的学生管理系统,基本的增删改查,里面又演示视频和完整代码,有需要的伙伴可以自行下
52.80MB
抢茅台脚本以及使用方法
2021-01-08抢茅台的方法,里面有脚本文件和python的安装包,小白可以学习使用,大佬绕行吧,哈哈
18.78MB
Android开发入门60个小案例+源代码
2013-08-24适合初学者,大量简单小例子,完整源代码。
程序员的数学:线性代数
2019-09-26编程的基础是计算机科学,而计算机科学的基础是数学。因此,学习数学有助于巩固编程的基础,写出更健壮的程序。程序员的数学系列课程主要讲解程序员必备的数学知识,借以培养程序员的数学思维。学习者无需精通编程,也无需精通数学。从概率统计、线性代数、微积分、优化理论、随机过程到当前大热的机器学习,讲师幽默风趣,课件精致美观,深入浅出带你重学数学,时间不可重来,知识可以重学!
Linux系统编程:入门篇视频教程
2018-10-16Linux系统编程视频课程为《Linux系统编程》入门篇,主要针对零基础的Linux开发学员科普Linux系统编程的概念以及需要掌握的各种技能,掌握Linux命令编写、Linux学习路线并熟悉嵌入式设备编程的方法。为后续的Linux系统编程深入学习打下良好的基础。
2.80MB
Microsoft Visual C++ 14.0(安装包)
2018-05-08安装python依赖包报错信息"microsoft visual c++ 14.0 is required"的解决办法。 具体参考我的博客:https://blog.csdn.net/amoscn/a
Mysql数据库基础入门视频教程
2018-10-24Mysql数据库基础入门视频课程:属于零基础Mysql数据库教程,从数据库的基本专业术语介绍到数据库软件的下载使用 一步一步带你安装MySql。SQL阶段你将学会如果使用数据定义语言DDL,数据操作语言DML,数据查询语言DQL 在学会各中查询语句之后,会带你学习数据的完整性, 掌握如果正确的向数据库中添加数据 以上掌握技能之后,将会带你学习如何进行多表操作,关系的建立,各种连接查询等. 常用函数,事务的学习,您将学到什么是事务的提交,回滚,并发操作及脏读,幻读. 最后视图,存储过程,索引的学习,将会带你掌握更高级的数据库技术.
Javascript前端开发
2018-03-14JavaScript一种直译式脚本语言,是一种动态类型、弱类型、基于原型的语言,内置支持类型。它的解释器被称为JavaScript引擎,为浏览器的一部分,广泛用于客户端的脚本语言,早是在HTML(标准通用标记语言下的一个应用)网页上使用,用来给HTML网页增加动态功能。
Python基础入门
2020-06-05【为什么学Python?】 Python 是当今非常热门的语言之一,2020年的 TIOBE 编程语言排行榜中 ,Python名列第一,并且其流行度依然处在上升势头。 借此机会,裴老师联合CSDN推出了本课程,希望能影响更多的人走进Python,踏入编程的大门。 【你将收获什么?】 · 本课程就是为开发者抓住“新基建”这个历史机遇而设置的。认真地学完了本课程,你就有了一把钥匙,所谓“时势造英雄”,Python语言就是未来成长的垫脚石。 · 从核心基础概念到常见第三方模块,包括数据结构、逻辑运算、常见语句、函数、类及第三方模块,丰富的案例帮助学员快速入门Python。 · “授人以鱼”和“授人以渔”并重是本课程的特色。通过在本课程的学习,学员能够以Python语言为载体,掌握研习高级编程语言的一般方法,为后续个人发展奠定基础。 [知识脉络图]
374.0MB
python大作业--爬虫(完美应付大作业).zip
2020-06-18python大作业分享--30多个项目任你选(由于上传大小限制分多个文件上传。爬虫:https://download.csdn.net/download/weixin_43960044/1253338
20.44MB
零基础入门学习Python+全套源码课件(1-55讲).rar
2020-04-27鱼c小甲鱼零基础入门学习Python+全套源码课件。 Python3 才是 Python 发展的未来,就像 XP 和 WIN7 一样。在《零基础入门学习 Python 》的系列教程准备中,小甲鱼发觉
-
下载
云计算实验二_hadoop常用命令.docx
云计算实验二_hadoop常用命令.docx
-
学院
【数据分析-随到随学】Python语法强化与数据处理
【数据分析-随到随学】Python语法强化与数据处理
-
下载
多用户多级目录文件系统.zip
多用户多级目录文件系统.zip
-
下载
c语言期末考试题库完整.pdf
c语言期末考试题库完整.pdf
-
下载
images.zip
images.zip
-
下载
google插件-axure (1).rar
google插件-axure (1).rar
-
博客
氧神来袭
氧神来袭
-
下载
HP_LaserJet_MFP_M72625_M72630_Full_Software_and_Drivers_1.04
HP_LaserJet_MFP_M72625_M72630_Full_Software_and_Drivers_1.04
-
博客
汉诺塔
汉诺塔
-
下载
使用devcpp开发纯c语言迷宫源码
使用devcpp开发纯c语言迷宫源码
-
学院
(新)备战2021软考网络工程师培训学习套餐
(新)备战2021软考网络工程师培训学习套餐
-
学院
Python+Django+Mysql的多app后端开发入门
Python+Django+Mysql的多app后端开发入门
-
博客
使用 C++ 开发出 【飞机大战】
使用 C++ 开发出 【飞机大战】
-
学院
(新)备战2021软考软件设计师顺利通关套餐
(新)备战2021软考软件设计师顺利通关套餐
-
下载
老魔域20200320.rar
老魔域20200320.rar
-
博客
牛客练习赛76 C-CG的通关秘籍 组合+数学推导
牛客练习赛76 C-CG的通关秘籍 组合+数学推导
-
博客
《循环》
《循环》
-
博客
Linux就该这么学2021/01/15
Linux就该这么学2021/01/15
-
博客
VLAN实验
VLAN实验
-
博客
spring整合mybatis的nested exception is org.apache.ibatis.reflection.reflectionexception: error instanti
spring整合mybatis的nested exception is org.apache.ibatis.reflection.reflectionexception: error instanti
-
博客
Day five
Day five
-
下载
Mysql调优.xmind
Mysql调优.xmind
-
学院
Cocos Creator游戏开发-连连看 (接入腾讯优量汇广告)
Cocos Creator游戏开发-连连看 (接入腾讯优量汇广告)
-
下载
usb设备驱动流程详解
usb设备驱动流程详解
-
下载
端到端的一體化數位供應鏈
端到端的一體化數位供應鏈
-
下载
imager_1.5.exe
imager_1.5.exe
-
下载
生物化学本硕博备考整理——名词解释1
生物化学本硕博备考整理——名词解释1
-
博客
IDEA git 只有Commit没有Push
IDEA git 只有Commit没有Push
-
博客
LeetCode-122-买卖股票的最佳时机II
LeetCode-122-买卖股票的最佳时机II
-
博客
《JavaScript高级程序设计》(第4版)阅读笔记(六)
《JavaScript高级程序设计》(第4版)阅读笔记(六)