3 Replies Latest reply on Apr 18, 2011 9:29 AM by manik

    cache event

    yelin666

      We are using cache event handling from Infinispan. One thing I noticed is that when an event is generated, if I read the cache entry value from the event itself, it's always the up-to-date value; however, at the time of the event being generated even for non-pre event, if I read the cache for the key in the event, sometimes I got the obsolete value. Is this the desired behavior? If so, why ans what's the reasoning behind? Thanks.

        • 1. cache event
          manik

          This is because the entry isn't flushed to the cache until the events complete.

          • 2. cache event
            yelin666

            Just want to confirm with you - even if we set @Listener(sync=false) and handle the non-pre event, there is a chance the entry is not flushed to the cache when we get the event? Please respond.

             

            Thanks!

            • 3. cache event
              manik

              Yes, that is correct.