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
What is the reason for CacheEntryCreatedEvent not having an inserted item?
What is the best way of being notified about only newly inserted items and being able to access their values?