1 Reply Latest reply on Nov 24, 2014 5:45 AM by Radim Vansa

    How to use more information than entries lifespan to control their expiration

    Abraham Dia Newbie

      I'm using infinispan for caching objects that have dependencies between them (a cached object may reference another cached object). To materialize this relation, I have a counter on each of these objects to count the number of entering references (the cached object has a value and a counter).


      I'm enabling cache eviction and expiration however I don't want an object which is referenced by at least another cached object to be removed for expiration (as I've to do some clean-up first).

      How I could implement this so that the expiration takes into account these counters in addition to the lifespan?