8000 GitHub - shadowsama/SpringBootCache: SpringBoot使用redis做cache
[go: up one dir, main page]

Skip to content

shadowsama/SpringBootCache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot使用redis做数据缓存

###添加redis支持
org.springframework.boot
spring-boot-starter-redis

###redis配置

REDIS (RedisProperties)

spring.redis.database= # database name
spring.redis.host=localhost # server host
spring.redis.password= # server password
spring.redis.port=6379 # connection port
spring.redis.pool.max-idle=8 # pool settings ...
spring.redis.pool.min-idle=0
spring.redis.pool.max-active=8
spring.redis.pool.max-wait=-1
spring.redis.sentinel.master= # name of Redis server
spring.redis.sentinel.nodes= # comma-separated list of host:port pairs

About

SpringBoot使用redis做cache

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0