Spring Boot Cache: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
<source lang="xml">
<dependency>
    <groupId>org.springframework.session</groupId>
    <artifactId>spring-session-core</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.session</groupId>
    <artifactId>spring-session-data-redis</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-cache</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
</source>
<source lang="properties">
spring.cache.redis.cache-null-values: false
spring.cache.redis.time-to-live: 600000
spring.redis.host: 127.0.0.1
spring.redis.port: 6379
</source>
==References==
==References==
* [https://www.mindbowser.com/spring-boot-with-redis-cache-using-annotation/ Spring Boot With Redis Cache Using Annotation]
* [https://www.mindbowser.com/spring-boot-with-redis-cache-using-annotation/ Spring Boot With Redis Cache Using Annotation]
* [https://bitbucket.org/shahedhossain/finology-http-spider/src/master/src/main/java/biz/shahed/finology/http/spider/service/PageTrackerServiceImpl.java Spring Boot With Ehcache Using Annotation]
* [https://bitbucket.org/shahedhossain/finology-http-spider/src/master/src/main/java/biz/shahed/finology/http/spider/service/PageTrackerServiceImpl.java Spring Boot With Ehcache Using Annotation]
* [https://www.baeldung.com/spring-boot-redis-cache Spring Boot Cache with Redis]
* [https://www.baeldung.com/spring-boot-redis-cache Spring Boot Cache with Redis]

Revision as of 08:00, 16 May 2021

<dependency>
    <groupId>org.springframework.session</groupId>
    <artifactId>spring-session-core</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.session</groupId>
    <artifactId>spring-session-data-redis</artifactId>
</dependency>

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-cache</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
spring.cache.redis.cache-null-values: false
spring.cache.redis.time-to-live: 600000
spring.redis.host: 127.0.0.1
spring.redis.port: 6379

References