Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
denbon05 authored Apr 22, 2024
1 parent 8fe7f13 commit 5ac7185
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@ axios.get(url);

## API

### Options (default)

```ts
{
ttlInMinutes?: 5,
disableCache?: false,
statusesToCache?: [200],
methodsToCache?: ['GET'],
excludeRoutes?: [],
ttlCheckIntervalMs?: 1000,
}
```

### On fastify instance

<p><b>app.lcache</b> available inside your app</p>
Expand Down

0 comments on commit 5ac7185

Please sign in to comment.