new CachedCall(key, result, maxAge)
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
key |
string | ||
result |
string | ||
maxAge |
number | 60 | In Seconds |
- Source:
Methods
-
getAge()
-
The current age of the saved data
- Source:
Returns:
- Type
- number
-
isExpired()
-
Checks if the call is expired by comparing the age with the max-age of the data.
- Source:
Returns:
- Type
- boolean