I am planning to use infinispan as my Hibernate app L2 cache. My all entities has a life cycle attribute [ New -> Run -> Completed ]. Initially my entities are in New state and when time goes it's moves to other states.
In simply I want to evict the entities from the cache when entity life cycle attribute status arrive to the Completed state. As par as my understanding Infinispan does not support custom eviction policies. what will be the best way to handle my situation ?