Skip to main content

Configure the POM cache

When the Moderne Connector resolves a recipe artifact, it walks the artifact's POM dependency graph against your recipe marketplace repositories. To avoid re-fetching the same POMs on every resolution, the Connector caches them.

By default the cache lives in memory. For larger deployments — especially when running multiple Connector replicas — you can switch to a shared Redis cache so that POM lookups are reused across replicas.

Environment variables:

Variable NameRequiredDefaultDescription
MODERNE_CONNECTOR_RECIPE_POMCACHE_TYPEfalseUsed to specify what type of cache the POM should use. Acceptable values: IN_MEMORY or REDIS.
MODERNE_CONNECTOR_RECIPE_POMCACHE_ENTRYTTLMINUTESfalse60How long entries should live in the POM cache.
MODERNE_CONNECTOR_RECIPE_POMCACHE_REDIS_HOSTtrue (If the POM cache type is REDIS)The URL of the Redis instance.
MODERNE_CONNECTOR_RECIPE_POMCACHE_REDIS_PORTtrue (If the POM cache type is REDIS)6379The port number of the Redis instance.
MODERNE_CONNECTOR_RECIPE_POMCACHE_REDIS_USERNAMEfalseThe username needed to authenticate to the Redis instance.
MODERNE_CONNECTOR_RECIPE_POMCACHE_REDIS_PASSWORDfalseThe password needed to authenticate with the Redis instance.
MODERNE_CONNECTOR_RECIPE_POMCACHE_REDIS_SSLfalsefalseIf set to true, then SSL will be enabled for the connection to the Redis instance.
MODERNE_CONNECTOR_RECIPE_POMCACHE_REDIS_DATABASEfalse0The Redis DB index.

Example:

docker run \
# ... Existing variables
# ... Additional variables