diff --git "a/boke/mid/Redis\346\225\231\347\250\213.md" "b/boke/mid/Redis\346\225\231\347\250\213.md" index 697ba67..d8d37b3 100644 --- "a/boke/mid/Redis\346\225\231\347\250\213.md" +++ "b/boke/mid/Redis\346\225\231\347\250\213.md" @@ -1,3 +1,5 @@ + + ###### 常用命令 [命令 |文档 (redis.io)](https://redis.io/docs/latest/commands/) @@ -26,14 +28,40 @@ help @xx类型 ###### redisTemplate +```xml + + + org.springframework.boot + spring-boot-starter-data-redis + + ``` +###### 单机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