cache-refresh-ahead

Spring Boot Cache Refresh Ahead Starter

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы
Группа

Группа

blog.svenbayer
Идентификатор

Идентификатор

cache-refresh-ahead-spring-boot-starter
Последняя версия

Последняя версия

1.0.0.RELEASE
Дата

Дата

Тип

Тип

jar
Описание

Описание

cache-refresh-ahead
Spring Boot Cache Refresh Ahead Starter
Ссылка на сайт

Ссылка на сайт

https://github.com/SvenBayer/cache-refresh-ahead-spring-boot-starter
Организация-разработчик

Организация-разработчик

Pivotal Software, Inc.
Система контроля версий

Система контроля версий

http://github.com/SvenBayer/cache-refresh-ahead-spring-boot-starter/tree/master

Скачать cache-refresh-ahead-spring-boot-starter

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/blog.svenbayer/cache-refresh-ahead-spring-boot-starter/ -->
<dependency>
    <groupId>blog.svenbayer</groupId>
    <artifactId>cache-refresh-ahead-spring-boot-starter</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/blog.svenbayer/cache-refresh-ahead-spring-boot-starter/
implementation 'blog.svenbayer:cache-refresh-ahead-spring-boot-starter:1.0.0.RELEASE'
// https://jarcasting.com/artifacts/blog.svenbayer/cache-refresh-ahead-spring-boot-starter/
implementation ("blog.svenbayer:cache-refresh-ahead-spring-boot-starter:1.0.0.RELEASE")
'blog.svenbayer:cache-refresh-ahead-spring-boot-starter:jar:1.0.0.RELEASE'
<dependency org="blog.svenbayer" name="cache-refresh-ahead-spring-boot-starter" rev="1.0.0.RELEASE">
  <artifact name="cache-refresh-ahead-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='blog.svenbayer', module='cache-refresh-ahead-spring-boot-starter', version='1.0.0.RELEASE')
)
libraryDependencies += "blog.svenbayer" % "cache-refresh-ahead-spring-boot-starter" % "1.0.0.RELEASE"
[blog.svenbayer/cache-refresh-ahead-spring-boot-starter "1.0.0.RELEASE"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter jar 2.0.4.RELEASE
org.springframework : spring-context jar 5.0.8.RELEASE
org.springframework : spring-context-support jar 5.0.8.RELEASE
org.springframework.boot : spring-boot-starter-data-redis Необязательный jar 2.0.4.RELEASE
com.github.ben-manes.caffeine : caffeine Необязательный jar 2.6.2

Модули Проекта

Данный проект не имеет модулей.

Maven Central Javadocs Project Stats

[Unit Tests CircleCI [Integration Tests CircleCI

[SonarQube]

Cache Refresh Ahead Starter

A Cache Refresh-Ahead Spring Boot Starter for Caffeine and Redis cache!

This starter enables Refresh-Ahead Caching. This enables clients to benefit from the speed of caching while the application keeps the cache closely up-to-date. The client will not feel any impact of the slow source behind the cache.

Supported Cache Frameworks

Currently, only Caffeine and Redis Cache is supported.

Usage

Examples

You can find examples of how to use the library at https://github.com/SvenBayer/cache-refresh-ahead-samples

Preprequisites

You have to add @EnableCaching to your project and define a CacheManager bean.

Setup

Add the Spring Boot starter to your maven pom. Define the expiration of your cache values.

Define the cache refresh intervals in your application.properties/yml. You can either define a global interval, or specify an interval for each cache separately. For example, the first line specifies that the caches are reloaded every 5 seconds. The second line specifies that only the cache named longrun is being reloaded every 5 seconds.

cache.reload.ahead.refresh-ahead-interval=5s
cache.reload.ahead.refresh-ahead-interval-caches.longrun=5s

More Information

Visit my blog at https://svenbayer.blog

Версии библиотеки

Версия
1.0.0.RELEASE