Caffeine
Caffeine is the default cache implementation since v1.26. It’s built on top of the excellent Caffeine library by Ben Manes. This cache supports automatic eviction and TTL for each object.
There’s one big cache map, shared by all Para apps. Cached objects have keys with a unique prefix for each app. When the cache reaches its maximum size or when objects in the map expire, the least recently used ones are evicted. Caffeine is simple and effective, making it excellent for smaller Para clusters or single-node deployments.
These are the configuration properties for Caffeine:
| property | description |
|---|---|
para.caffeine.cache_size | Maximum size for the cache map. Defaults to 10000. |
para.caffeine.evict_after_minutes | Cache eviction policy - objects are evicted after this time. Defaults to 10 min. |