Class CacheEviction

java.lang.Object
io.fluxcapacitor.javaclient.persisting.caching.CacheEviction

public class CacheEviction extends Object
Represents an eviction from a Cache.

These events are typically emitted when a cached object is removed from memory due to expiration, memory pressure, manual eviction, or cache size constraints.

Eviction events are useful for metrics reporting and operational observability, particularly when monitoring cache hit/miss ratios and understanding retention behaviors under load.

Emitted events can be published to the metrics log via CacheEvictionsLogger and consumed downstream for alerts or analysis.

See Also:
  • Constructor Details

    • CacheEviction

      public CacheEviction()