[ 
https://issues.apache.org/jira/browse/IGNITE-14326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexey Kukushkin updated IGNITE-14326:
--------------------------------------
    Description: 
Ignite provides a way to specify an expiry policy on per entry level, but there 
is no way to refresh the TTL without first retrieving the record, which is slow 
and resource consuming if an entry is large.

Provide a method to reset Ignite cache entry TTL.

Suggested API (to be discussed with community):
{{IgniteCache#touch(key)}}: resets the TTL using the latest TTL value or does 
nothing if no TTL was specified for the key. 



  was:
Ignite provides a way to specify an expiry policy on per entry level, but there 
is no way to know the current TTL for a particular key or refresh the TTL 
without first retrieving the record.

Ticket IGNITE-7641 details the IgniteCache#ttl() method. This ticket is about 
_setting_ the TTL.

The API for this is less well defined than the get TTL method. Suggest a number 
of options:
 * Update using the default TTL policy
 * Update using a specified long
 * Update using a specified Expiry policy


> Resetting Ignite cache entry TTL
> --------------------------------
>
>                 Key: IGNITE-14326
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14326
>             Project: Ignite
>          Issue Type: Improvement
>          Components: cache
>    Affects Versions: 2.3
>            Reporter: Stephen Darlington
>            Assignee: Stephen Darlington
>            Priority: Major
>              Labels: cggg
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Ignite provides a way to specify an expiry policy on per entry level, but 
> there is no way to refresh the TTL without first retrieving the record, which 
> is slow and resource consuming if an entry is large.
> Provide a method to reset Ignite cache entry TTL.
> Suggested API (to be discussed with community):
> {{IgniteCache#touch(key)}}: resets the TTL using the latest TTL value or does 
> nothing if no TTL was specified for the key. 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to