humanAge
humanAge(
ms):string
How old a cached answer is. undefined is a miss, which has no age at all —
and says so rather than reading as “0s old”, which would claim a freshness
nothing measured.
The floor of one second is deliberate: an answer read out of the store moments after it was written is still an answer from the store, and “0s old” invites the reader to think it is live.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ms | number | undefined |
Returns
Section titled “Returns”string