Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwray committed Sep 27, 2024
1 parent c17202f commit 573897f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/node-cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ export type NodeCacheStoreOptions = {
};
```

Note: the `ttl` is now in milliseconds and not seconds like `stdTTL` in `NodeCache`.

### Node Cache Store API

* `set(key: string | number, value: any, ttl?: number): Promise<boolean>` - Set a key value pair with an optional ttl (in milliseconds). Will return true on success. If the ttl is not set it will default to 0 (no ttl)
Expand Down

0 comments on commit 573897f

Please sign in to comment.