Is there a way in the response cache policy to determine how much time an entry has until it expires ?

Would be a good metadata attribute to have for the entry. Can we retrieve same in runtime ?

~~Q:S:S~~

Solved Solved
0 2 391
1 ACCEPTED SOLUTION

Not applicable

Hi @Anil Sagar AFAIK there is no direct way to get this but you can store the cache key with its created timestamp and you can determine the time until it expires whenever you lookup.

Never tried but theoretically it should work.
BTW I think we have this data in C* but we don't expose this.

View solution in original post

2 REPLIES 2

Not applicable

Hi @Anil Sagar AFAIK there is no direct way to get this but you can store the cache key with its created timestamp and you can determine the time until it expires whenever you lookup.

Never tried but theoretically it should work.
BTW I think we have this data in C* but we don't expose this.

Thank you @Maruti Chand , It's helpful.