I am using infinispan 6.0, I need notifications for the entries that are deleted after TTL(time to live).
Right now I am getting notifications for @CacheEntriesEvicted whereas I expect @CacheEntryRemoved to be raised.
Also I am only able to retrieve key(entry.getKey()) of the evicted record, I also want to retrieve value of the evicted record. Entry.getValue() is returning null.
This has been addressed recently, please use @CacheEntryExpired in Infinispan 8.2.x (the feature is there since 8.0 but we backport bugfixes only to 8.2.x).
Retrieving data ...