跳到主要内容

接入 redis

集成

<dependency>
<groupId>com.manatee.manatee-lowcode</groupId>
<artifactId>lowcode-redis</artifactId>
<version>${lowcode.version}</version>
</dependency>

项目配置


//单机模式
spring:
redis:
password: xxxxxx
host: xx.xx.xx.xx
port: 6379


//集群模式
spring:
redis:
password: xxxxxx
cluster:
nodes:
- 'xx.xx.xx.xx:xxxx'
- 'xx.xx.xx.xx:xxxx'
- 'xx.xx.xx.xx:xxxx'

manatee:
default:
redis:
mode: cluster