-
Notifications
You must be signed in to change notification settings - Fork 507
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
docs(cache): improve documentation and cachedFunction
default options
#1011
Conversation
β Live Preview ready!
|
Codecov Report
@@ Coverage Diff @@
## main #1011 +/- ##
=======================================
Coverage 67.66% 67.66%
=======================================
Files 60 60
Lines 6161 6161
Branches 692 692
=======================================
Hits 4169 4169
Misses 1982 1982
Partials 10 10 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
cachedFunction
default optionscachedFunction
default options
) { | ||
opts = { ...defaultCacheOptions, ...opts }; | ||
|
||
const pending: { [key: string]: Promise<T> } = {}; | ||
|
||
// Normalize cache params | ||
const group = opts.group || "nitro"; | ||
const group = opts.group || "nitro/functions"; |
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.
This is breaking change as invalidates all current prod deployment namespaces π
β Type of change
π Description
Improve a lot the documentation for the Cache API as well as:
cachedFunction
tonitro/functions
cachedFunction
likecachedEventHandler
Docs preview
π Checklist