You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Stephen Darlington <st...@gridgain.com> on 2021/04/15 16:33:01 UTC

[IGNITE-7641] Add CacheEntry#ttl method

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