New Feature: .cache
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Causes the target method to be called once and the response cached for when the method is next called.
var f = f.cache(options)
Options could let you set a duration.
f.invalidateCache();
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the repository's existing function-extension entry points and the target method behavior before deciding how the proposed f.cache(options) API should fit. Define the expected duration option and invalidation behavior, then verify that the target is called once, subsequent calls use the cached response, and invalidateCache() refreshes it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100