[IGNITE-7641] Add CacheEntry#ttl method

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[IGNITE-7641] Add CacheEntry#ttl method

sdarlington
Hi all,

I created a pull request that creates new method on IgniteCache that returns the current TTL of a record. I’m not entirely clear who I should tag for a review, so I’m posting here.

> https://issues.apache.org/jira/browse/IGNITE-7641 <https://issues.apache.org/jira/browse/IGNITE-7641>
I <https://github.com/apache/ignite/pull/8780>https://github.com/apache/ignite/pull/8780

I decided to implement as a method on IgniteCache rather than CacheEntry to avoid having to copy the whole record over the network just to figure out the TTL. Unless I missed something, it didn’t appear to be as simple to implement as the comments in the ticket would make you think!

Thoughts?

Regards,
Stephen