I dont think I need this right away, but I wonder if there is a variable in lookup cache policy that tells you how much time the cache will exist ?
example you start with a cache for 10 minutes, and after 7 minutes lookup tells you you still have this object for another 3 minutes.
Solved! Go to Solution.
It seems like there is no way to find this directly. Nevertheless, we could add separate cache entry with the timestamp when the cache was created and calculate the time difference using the system time:
https://community.apigee.com/questions/48416/is-there-a-way-to-retrieve-the-remaining-cache-dur.html
https://docs.apigee.com/api-platform/cache/cache-internals
https://docs.apigee.com/api-platform/reference/policies/populate-cache-policy
It seems like there is no way to find this directly. Nevertheless, we could add separate cache entry with the timestamp when the cache was created and calculate the time difference using the system time:
https://community.apigee.com/questions/48416/is-there-a-way-to-retrieve-the-remaining-cache-dur.html
https://docs.apigee.com/api-platform/cache/cache-internals
https://docs.apigee.com/api-platform/reference/policies/populate-cache-policy
thank you, im accepting the answer, but i wish this could be a feature or at least a field 🙂
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |