Skip to content

Commit

Permalink
Add documentationf for the new flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mairatma committed Oct 5, 2023
1 parent 8289041 commit fb4268e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/HttpClient/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,18 @@ export interface InstanceOptions {
timeout?: number
memoryCache?: CacheLayer<string, Cached>
diskCache?: CacheLayer<string, Cached>

/**
* Enables memoization, ephemeral within each request, for all requests of this client.
* Useful for services that makes recursive requests, like graphql resolvers, which
* might fetch the same endpoint more than once.
* If that's not the case for your service, disabling it might improve the CPU and
* memory usage.
*
* Default value: true
*/
memoizable?: boolean

baseURL?: string
retries?: number
exponentialTimeoutCoefficient?: number
Expand Down

0 comments on commit fb4268e

Please sign in to comment.