Skip to content

Commit

Permalink
0914
Browse files Browse the repository at this point in the history
  • Loading branch information
HbhHub committed Sep 14, 2024
1 parent ca01e6a commit 6bf5000
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions boke/mid/Redis教程.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


###### 常用命令

[命令 |文档 (redis.io)](https://redis.io/docs/latest/commands/)
Expand Down Expand Up @@ -26,14 +28,40 @@ help @xx类型

###### redisTemplate

```xml
<!--SpringBoot与Redis整合依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>

```

###### 单机yml

```yaml
redis:
host: 192.168.134.100
port: 6379
database: 0
timeout: 1800000
password: 123321
lettuce:
pool:
max-active: 20 #最大连接数
max-wait: -1 #最大阻塞等待时间(负数表示没限制)
max-idle: 5 #最大空闲
min-idle: 0 #最小空闲
```
###### config
```

```



###### 方式2Jedis

```xml
Expand Down

0 comments on commit 6bf5000

Please sign in to comment.