0 Replies Latest reply on Jan 30, 2013 3:44 AM by Sergey Zh

    What is the reason for CacheEntryCreatedEvent not having an inserted item?

    Sergey Zh Newbie

      Hi there,

       

      I'm trying to use infinispan as an intermediate level of my app for filtering duplicate enties.

       

      As for me the natural way of this is to put every entry into the cache and create CacheEntryCreatedListener that will obtain only the new enties, so if anyone put an entry into the cache with existing key the CacheEntryCreatedListener will not be notified.

      I also don't have to force anyone to check whether there is an item in the cache before putting it.

       

      So the questions are

       

      1. What is the reason for CacheEntryCreatedEvent not having an inserted item?
      2. What is the best way of being notified about only newly inserted items and being able to access their values?

       

      Regards,

      Sergey