-
Notifications
You must be signed in to change notification settings - Fork 15
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
support entitlement api on adapter side #35
Conversation
@@ -26,6 +29,8 @@ async function get(region, key) { | |||
return defaultCache.get(key); | |||
} if (region === 'resource') { | |||
return resourceCache.get(key); | |||
} if (region === 'rpt') { | |||
return rptCache.get(key); |
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.
Avoid too many return
statements within this function.
|
||
async function put(region, key, value) { | ||
async function put(region, key, value, ttl) { |
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.
Function put
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Code Climate has analyzed commit 1a34778 and detected 0 issues on this pull request. View more on Code Climate. |
No description provided.