style: formatted code

This commit is contained in:
arthurfiorette 2023-06-09 13:27:58 -03:00
parent c7dab4fa57
commit 0cca290f0b
No known key found for this signature in database
GPG Key ID: 9D190CD53C53C555
3 changed files with 8 additions and 7 deletions

2
src/cache/cache.ts vendored
View File

@ -165,7 +165,7 @@ export type CacheProperties<R = unknown, D = unknown> = {
*
* - `number` -> the max time (in seconds) that the cache can be reused.
* - `boolean` -> `false` disables and `true` enables with infinite time if no value is
* present on `stale-if-error` in Cache-Control.
* present on `stale-if-error` in Cache-Control.
* - `function` -> a predicate that can return `number` or `boolean` as described above.
*
* @default true

View File

@ -2,6 +2,7 @@ import type { CacheAxiosResponse } from '../cache/axios';
/**
* The possible values are:
*
* - `'dont cache'`: the request will not be cached.
* - `'not enough headers'`: the request will find other ways to determine the TTL value.
* - `number`: used as the TTL value.

View File

@ -32,13 +32,13 @@ declare const structuredClone: (<T>(value: T) => T) | undefined;
*
* @param {boolean} cloneData If the data returned by `find()` should be cloned to avoid
* mutating the original data outside the `set()` method.
*
* @param {number | false} cleanupInterval The interval in milliseconds to run a
* setInterval job of cleaning old entries. If false, the job will not be created. Disabled is default
*
* @param {number | false} maxEntries The maximum number of entries to keep in the storage. Its hard to
* determine the size of the entries, so a smart FIFO order is used to determine eviction. If false,
* no check will be done and you may grow up memory usage. Disabled is default
* setInterval job of cleaning old entries. If false, the job will not be created.
* Disabled is default
* @param {number | false} maxEntries The maximum number of entries to keep in the
* storage. Its hard to determine the size of the entries, so a smart FIFO order is used
* to determine eviction. If false, no check will be done and you may grow up memory
* usage. Disabled is default
*/
export function buildMemoryStorage(
cloneData = false,