[infinispan-issues] [JBoss JIRA] (ISPN-8331) CacheEntryExpiredEvent.getValue() is always null when entry expired from cache store
William Burns (JIRA)
issues at jboss.org
Mon Sep 25 15:52:00 EDT 2017
[ https://issues.jboss.org/browse/ISPN-8331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
William Burns updated ISPN-8331:
--------------------------------
Issue Type: Enhancement (was: Bug)
Unfortunately this is the way the loader spi was implemented. I would love to change this to support values as well. If we do, we may want to provide a way to optionally pull the value such as a `Supplier` to get the value. I am not sure if we have implementations that it may be very costly to pull the value or not.
Also cc/ [~ryanemerson] since he has been dealing with loaders recently.
> CacheEntryExpiredEvent.getValue() is always null when entry expired from cache store
> ------------------------------------------------------------------------------------
>
> Key: ISPN-8331
> URL: https://issues.jboss.org/browse/ISPN-8331
> Project: Infinispan
> Issue Type: Enhancement
> Components: Expiration
> Affects Versions: 9.1.1.Final
> Reporter: Paul Ferraro
>
> AdvancedCacheWriter.PurgeListener callback only sends the key of the expired entry.
> Proposal:
> AdvancedCacheWriter.PurgeListener.entryPurged(MarshalledEntry entry);
> This way, we only incur the cost of unmarshalling value/metadata when requested.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list