#yyds干货盘点#Reactive访问Spring Data Redis

实践是知识的母亲,知识是生活的明灯。这篇文章主要讲述#yyds干货盘点#Reactive访问Spring Data Redis相关的知识,希望能为你提供帮助。
1、定义Lettuce 能够?持 Reactive ?式
【#yyds干货盘点#Reactive访问Spring Data Redis】Spring Data Redis 中主要的?持

  • ReactiveRedisConnection
  • ReactiveRedisConnectionFactory
  • ReactiveRedisTemplate
  • opsForXxx()
2、pom
< ?xml version="1.0" encoding="UTF-8"?>
< project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
< modelVersion> 4.0.0< /modelVersion>
< parent>
< groupId> org.springframework.boot< /groupId>
< artifactId> spring-boot-starter-parent< /artifactId>
< version> 2.1.3.RELEASE< /version>
< relativePath/> < !-- lookup parent from repository -->
< /parent>
< groupId> com.zhz< /groupId>
< artifactId> reactive-spring-boot-reactive-redis-demo< /artifactId>
< version> 0.0.1-SNAPSHOT< /version>
< name> reactive-spring-boot-reactive-redis-demo< /name>
< description> Spring Boot中的reactive集成redis< /description>
< properties>
< java.version> 1.8< /java.version>
< /properties>
< dependencies>
< dependency>
< groupId> org.springframework.boot< /groupId>
< artifactId> spring-boot-starter-data-redis-reactive< /artifactId>
< /dependency>
< dependency>
< groupId> org.springframework.boot< /groupId>
< artifactId> spring-boot-starter-jdbc< /artifactId>
< /dependency>
< dependency>
< groupId> com.h2database< /groupId>
< artifactId> h2< /artifactId>
< scope> runtime< /scope>
< /dependency>
< dependency>
< groupId> org.projectlombok< /groupId>
< artifactId> lombok< /artifactId>
< optional> true< /optional>
< /dependency>
< dependency>
< groupId> mysql< /groupId>
< artifactId> mysql-connector-java< /artifactId>
< /dependency>
< dependency>
< groupId> org.springframework.boot< /groupId>
< artifactId> spring-boot-starter-test< /artifactId>
< scope> test< /scope>
< /dependency>
< /dependencies>

< build>
< plugins>
< plugin>
< groupId> org.springframework.boot< /

    推荐阅读