Skip to content

Commit

Permalink
docs: Fix fetch function signature in README.md
Browse files Browse the repository at this point in the history
PR-URL: #251
Credit: @sebastinez
Close: #251
Reviewed-by: @isaacs
  • Loading branch information
sebastinez authored and isaacs committed Aug 22, 2022
1 parent 97d1e2d commit be57c92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,7 @@ can be confusing when setting values specifically to `undefined`,
as in `cache.set(key, undefined)`. Use `cache.has()` to
determine whether a key is present in the cache at all.

### `async fetch(key, { updateAgeOnGet, allowStale, size,
sizeCalculation, ttl, noDisposeOnSet, forceRefresh } = {}) => Promise`
### `async fetch(key, { updateAgeOnGet, allowStale, size, sizeCalculation, ttl, noDisposeOnSet, forceRefresh } = {}) => Promise`

If the value is in the cache and not stale, then the returned
Promise resolves to the value.
Expand Down

0 comments on commit be57c92

Please sign in to comment.