-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add support for optional timeout. #6
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a stats for cache.timeouts
for when it happens so we can add it to the errors/hits/misses graph?
}); | ||
}); | ||
|
||
it('ignores cache timeout error and requests from the system of record.', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is meant by from the system of record
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an official caching term for source system e.g our episodes API
cache.timeouts - good idea. Do you want that as part of this PR or can I add it later? |
Same PR please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
cheers |
Relates to:
https://jira.dev.bbc.co.uk/browse/IPLAYER-31846
Implementation notes:
.get
has been implemented. Writes are out of scope for this PR.ignoreCacheErrors
so we can bypass cache if a lookup is taking too long