ristretto
Stores key/value pairs in a map held in the memory-bound Ristretto cache.
- Common
- Advanced
# Common config fields, showing default valueslabel: ""ristretto:ttl: ""
# All config fields, showing default valueslabel: ""ristretto:ttl: ""retries: 0retry_period: 50ms
This cache is more efficient and appropriate for high-volume use cases than the standard memory cache. However, the add command is non-atomic, and therefore this cache is not suitable for deduplication.
This cache type supports setting the TTL individually per key by using the
dynamic ttl
field of a cache processor or output in order to
override the general TTL configured at the cache resource level.
Fields​
ttl
​
The TTL of each item as a duration string. After this period an item will be eligible for removal during the next compaction.
Type: string
Default: ""
# Examplesttl: 60sttl: 5mttl: 36h
retries
​
The maximum number of retry attempts to make before abandoning a request.
Type: int
Default: 0
retry_period
​
The duration to wait between retry attempts.
Type: string
Default: "50ms"