Skip to content

Commit

Permalink
improve readme contents (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
denbon05 authored Nov 1, 2024
1 parent 3552f41 commit 53b0a5b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ npm i fastify-lcache

- [Example](#example)
- [Plugin API](#api)
- [Route caching](#route-caching)
- [Options](#options-default)
- [On fastify instance](#on-fastify-instance)
- [Route caching](#route-caching)
- [Fastify compatibility](#fastify-version-compatibility)

## Example

Expand Down Expand Up @@ -111,7 +114,7 @@ while all other routes are ignored by the cache.
includeRoutes: '*',
excludeRoutes: ['/auth*', '/admin*']
}
*

// Scenario 2: Specific Routes for includeRoutes and excludeRoutes
// Behavior: Only '/api/users' and '/api/orders' are cached, and the rest is ignored
{
Expand Down

0 comments on commit 53b0a5b

Please sign in to comment.