Skip to content

Commit

Permalink
style: formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Jun 9, 2023
1 parent c7dab4f commit 0cca290
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/cache/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/header/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions src/storage/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0cca290

Please sign in to comment.