Sync cache doc with the last update (#2776)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-10-27 09:47:47 +02:00
committed by GitHub
parent c8b9bda69e
commit 948ce408f2
5 changed files with 17 additions and 12 deletions

View File

@@ -32,13 +32,11 @@ serviceMatcher.isFromSelf(event)
### Caching
Every node is maintaining its own caches independent from other nodes.
Every node is maintaining its own caches independent of the other nodes.
So there is no globally shared/synchronized cache instance within the cluster.
In order to keep nodes in sync, a **TTL (time to live)** can be set for all caches to ensure that after some time the cache is refreshed from the database.
To enable the TTL just set the property `hawkbit.cache.global.ttl` (value in milliseconds).
Of course, you can implement a shared cache, e.g. Redis. See [CacheAutoConfiguration](https://github.com/eclipse-hawkbit/hawkbit/blob/master/hawkbit-autoconfigure/src/main/java/org/eclipse/hawkbit/autoconfigure/cache/CacheAutoConfiguration.java).
To enable the TTL just set the property `hawkbit.cache.global.ttl` (value in dDhHmMsS format).
---