Is there a way to retrieve the remaining cache duration of a specific cache entry?

apigee-4
Participant II

Hi, When caching an entry, you can set the duration, that you want it to be cached.

Is there a way to retrieve how long a cached entry will remain in cache requesting it later on?

Example: Set an entry to expire in 10 minutes. Requesting it after 3 minutes, gives me the cache. Is there a way to know that at that time the entry is still valid for 7 minutes?

It can be overcome by setting another cache entry, containing the expiry timestamp, but then I am doing some shadow work, which I want to avoid. Please let me know if such a feature is available.

Best regards, Gijs

Solved Solved
1 2 176
1 ACCEPTED SOLUTION

Nope.

The way to accomplish it would be to do as you say.

Or just.... don't worry about it at all.

View solution in original post

2 REPLIES 2

Nope.

The way to accomplish it would be to do as you say.

Or just.... don't worry about it at all.

Thanks for your quick response!