# cacheentryttl

Sets the maximum age of entries in the metadata cache.

This parameter applies to Kubernetes Metadata Module (mmkubernetes).

Name:

  cacheentryttl

Scope:

  action

Type:

  integer

Default:

  3600

Required?:

  no

Introduced:

  at least 8.x, possibly earlier

## Description

This parameter allows you to set the maximum age (time-to-live, or ttl) of an entry in the metadata cache. The value is in seconds. The default value is 3600 (one hour). When cache expiration is checked, if a cache entry has a ttl less than or equal to the current time, it will be removed from the cache.

This option is only used if cacheexpireinterval is 0 or greater.

This value must be 0 or greater, otherwise, if cacheexpireinterval is 0 or greater, you will get an error.

## Action usage

    action(type="mmkubernetes" cacheEntryTtl="3600")

## See also

See also Kubernetes Metadata Module (mmkubernetes).

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.