[infinispan-issues] [JBoss JIRA] (ISPN-5298) HotRod millisecond precision for lifespan/maxidle
Galder Zamarreño (JIRA)
issues at jboss.org
Wed Mar 18 11:26:20 EDT 2015
[ https://issues.jboss.org/browse/ISPN-5298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051430#comment-13051430 ]
Galder Zamarreño commented on ISPN-5298:
----------------------------------------
Ion, did you get a reply to the JSR issue? I'd wait to get an answer for that before making any immediate changes :|
If we really need to implement this, I think Dan's approach is easiest. IOW, adding flags indicating the granularity of the expiration parameter. Seconds and Milliseconds would be enough. Also, remember what the protocol says:
bq. Number of seconds that a entry during which the entry is allowed to life. If number of seconds is bigger than 30 days, this number of seconds is treated as UNIX time and so, represents the number of seconds since 1/1/1970. If set to 0, lifespan is unlimited.
Seconds is enough to be able to represent any other expiration that's above it.
Let's not complicate things beyond what's required :)
> HotRod millisecond precision for lifespan/maxidle
> -------------------------------------------------
>
> Key: ISPN-5298
> URL: https://issues.jboss.org/browse/ISPN-5298
> Project: Infinispan
> Issue Type: Feature Request
> Components: Remote Protocols
> Affects Versions: 7.2.0.Alpha1
> Reporter: Ion Savin
>
> Currently lifespan/maxidle precision is SECONDS.
> JSR-107 requires MILLISECONDS precision.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the infinispan-issues
mailing list