[#2362] Set cache manager TTL by default 10sec (#2378)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-04-28 13:22:19 +03:00
committed by GitHub
parent 30c0ae3cc2
commit 0059a60f5b
2 changed files with 6 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ public class CacheProperties {
/**
* TTL for cached entries in millis.
*/
private int ttl;
private int ttl = 10_000; // default TTL - 10 seconds
/**
* Initial delay in millis

View File

@@ -37,6 +37,11 @@ server.servlet.encoding.force=true
hawkbit.server.ddi.security.authentication.targettoken.enabled=false
hawkbit.server.ddi.security.authentication.gatewaytoken.enabled=false
# Cache configuration,
# disable expiration since monolith is expected to be used as an all-in-one hawkBit instance,
# i.e. no microservices and 1 replica, then evict should do work
hawkbit.cache.global.ttl=0
# Optional events
hawkbit.server.repository.publish-target-poll-event=false