Skip to content

Insight Cache

insight-cache.war provides a temporary memory in which string key value pairs can be stored. The map can be operated via create, read, update and delete (CRUD). In addition, the entries have a default expiry time, after which they are deleted from the cache. This duration can be adapted via create and update. The default is a duration of 20 seconds. The clean-up mechanism runs automatically in 1-second cycles.

Multi-Container

For multi-container operation, for example, it is possible to run insight-cache.war in its own container. An insight-svc-cache image exists for this purpose. To use the API, insight-cache-proxy.jar can be integrated as a library in the middleware.

middleware:
    image: registry.ibfs.de/insight:${INSIGHT_VERSION}
    environment:
      - CACHE_URL=http://cache:8080/insight-cache
    ...
cache:
      image: registry.ibfs.de/insight-svc-cache:${INSIGHT_VERSION}