diff --git a/README.md b/README.md index c75cabc..70b3951 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,8 @@ With 10 simultaneous downloads. Retrying each one to a max of 10. - `auto`: <[boolean][]> Whether or not to start the request automatically or wait for a `request.start()` call (useful when chaining events you want to fire in order). **Default**: `true` - `size`: <[number][]> Number of bytes to stream off the response. - `hash`: <[string][]> Hash algorithm to use to create a [crypto.Hash][] instance computing the stream hash. +- `cache`: <[number][]> Whether or not to use an in-memory cache to enable read-aheads of pending chunks. +- `cacheSize`: <[boolean][]> Custom maximum cache size (bytes). - `use`: <[object][]> Key-value pairs of middlewares with which to pipe the response object through. keys are [strings][string], values are [Transformer generating functions](#usemiddlewarefn) (Alternatively, use the [xget.use()](#xgetuse) method). - `with`: <[object][]> Key-value pairs of middlewares with which to pipe the dataslice object through. keys are [strings][string], values are [functions][function] whose return values are accessible within the [store](#storestack). (Alternatively, use the [xget.with()](#xgetwith) method). - `headHandler`: <[HeadHandler](#headhandler)> An interceptor for the initial HEAD data, useful for programmatically defining a range offset; diff --git a/typings/index.d.ts b/typings/index.d.ts index 6142b35..7533fec 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -52,6 +52,8 @@ declare namespace xget { with: WithMiddlewareFn; start: number; chunks: number; + cache: boolean; + cacheSize: number; retries: number; timeout: number; headHandler: HeadHandler;