Skip to content

Commit

Permalink
fix(lru-cache): use max instead of maxSize
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 8, 2023
1 parent a9965a8 commit 012fc62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/6.drivers/lru-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ navigation.title: LRU Cache

Keeps cached data in memory using [LRU Cache](https://www.npmjs.com/package/lru-cache).

See [`lru-cache`](https://www.npmjs.com/package/lru-cache) for supported options. By default `{ maxSize: 500 }` is used.
See [`lru-cache`](https://www.npmjs.com/package/lru-cache) for supported options. By default `{ max: 500 }` is used.

```js
import { createStorage } from "unstorage";
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/lru-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface LRUDriverOptions extends LRUOptions {}
export default defineDriver((opts: LRUDriverOptions) => {
const cache = new LRU({
...opts,
maxSize: 500,
max: 500,
});

return {
Expand Down

0 comments on commit 012fc62

Please sign in to comment.