[infinispan-issues] [JBoss JIRA] (ISPN-1792) API to return modification timestamp of a given entry

Manik Surtani (JIRA) jira-events at lists.jboss.org
Fri Jan 27 05:43:48 EST 2012


    [ https://issues.jboss.org/browse/ISPN-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662385#comment-12662385 ] 

Manik Surtani edited comment on ISPN-1792 at 1/27/12 5:42 AM:
--------------------------------------------------------------

I presume you mean something like:

{code}
long lastModified = cache.getAdvancedCache().getLastModified(myKey); 
{code}

and a -1 value would mean that it is an immortal entry for which timestamps are not stored?
                
      was (Author: manik):
    I presume you mean something like:

{{code}}
long lastModified = cache.getAdvancedCache().getLastModified(myKey); 
{{code}}

and a -1 value would mean that it is an immortal entry for which timestamps are not stored?
                  
> API to return modification timestamp of a given entry
> -----------------------------------------------------
>
>                 Key: ISPN-1792
>                 URL: https://issues.jboss.org/browse/ISPN-1792
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Core API
>    Affects Versions: 5.1.0.FINAL
>            Reporter: Thomas Fromm
>            Assignee: Manik Surtani
>             Fix For: 5.2.0.FINAL
>
>
> To realise things like: programmatic delete last X entries from cache, I need the modification timestamp of the cache entry. ATM I store it inside the key object (cause I cannot modify value objects) and have my own index on this.
> Getting the modification timestamp using the advanced cache api would be really nice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list