【文件属性】:
文件名称:spring-boot-redis-cache
文件大小:274KB
文件格式:ZIP
更新时间:2021-05-30 15:50:37
Java
Spring Boot Redis 缓存
语境:
入门
在这个项目中,我使用 Redis 与 Spring Boot 进行缓存。 当您发送任何请求获取所有客户或通过 id 获取客户时,如果 Redis 没有相关数据,您将等待 3 秒。
Maven 依赖项
< dependency>
< groupId>org.springframework.boot groupId>
< artifactId>spring-boot-starter-data-redis artifactId>
dependency>
< dependency>
< groupId>redis.clients groupId>
< artifactId>jedis artifactId>
dependency>
Redis 配置
@Configuratio
【文件预览】:
spring-boot-redis-cache-master
----.gitignore(395B)
----Dockerfile(212B)
----.mvn()
--------wrapper()
----src()
--------main()
--------test()
----mvnw(10KB)
----assets()
--------endpoints.png(246KB)
----docker-compose.yml(663B)
----pom.xml(3KB)
----mvnw.cmd(6KB)
----README.md(6KB)