[infinispan-issues] [JBoss JIRA] (ISPN-3792) Optional Cache.putForExternalRead expiration arguments
Karl von Randow (JIRA)
issues at jboss.org
Tue Oct 14 04:52:36 EDT 2014
[ https://issues.jboss.org/browse/ISPN-3792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011470#comment-13011470 ]
Karl von Randow commented on ISPN-3792:
---------------------------------------
I've created a pull request with an implementation of metadata capable versions of putForExternalRead.
https://github.com/infinispan/infinispan/pull/2950
I'd like to be able to set metadata on cache entries that I use putForExternalRead on. I am using invalidation caches for caching data I load from a data store, so I can't use the standard put methods or risk invalidation after invalidation across my cluster. I have consider a Flags approach, however the putForExternalRead implementation does more than just flags; it also suspends the transaction.
The lack of metadata capability for putForExternalRead sticks out as different from the other methods. I've implemented metadata methods to match the other existing ones. I haven't put javadocs against them yet, but I will. I'd like to know if you like / approve the approach.
> Optional Cache.putForExternalRead expiration arguments
> ------------------------------------------------------
>
> Key: ISPN-3792
> URL: https://issues.jboss.org/browse/ISPN-3792
> Project: Infinispan
> Issue Type: Feature Request
> Components: Core
> Reporter: Vladimir Dzhuvinov
> Assignee: Mircea Markus
> Priority: Optional
>
> BasicCache has optional lifespan and idle time arguments for its put methods, I was hoping to have that for putForExternalRead as well.
> Cheers,
> Vladimir
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the infinispan-issues
mailing list