Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwray committed Sep 27, 2024
2 parents 26225c3 + f124f5e commit c21f6f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/node-cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ When initializing the cache you can pass in the options below:

```javascript
export type NodeCacheStoreOptions = {
ttl?: number; // The standard ttl as number in seconds for every generated cache element. 0 = unlimited
ttl?: number; // The standard ttl as number in milliseconds for every generated cache element. 0 = unlimited
primary?: Keyv; // The primary storage adapter
secondary?: Keyv; // The secondary storage adapter
maxKeys?: number; // Default is 0 (unlimited). If this is set it will throw and error if you try to set more keys than the max.
Expand Down
2 changes: 1 addition & 1 deletion packages/node-cache/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Keyv} from 'keyv';
import {type NodeCacheItem} from 'index.js';

export type NodeCacheStoreOptions = {
ttl?: number;
ttl?: number; // In milliseconds. This is a breaking change from the original NodeCache.
maxKeys?: number;
primary?: Keyv;
secondary?: Keyv;
Expand Down

0 comments on commit c21f6f3

Please sign in to comment.