Skip to content

Commit

Permalink
add max param on set to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
theganyo authored and isaacs committed Apr 15, 2015
1 parent fe333ca commit faae15c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ away.

## API

* `set(key, value)`
* `set(key, value, max)`
* `get(key) => value`

Both of these will update the "recently used"-ness of the key.
They do what you think.
They do what you think. `max` is optional and overrides the
cache `max` option if provided.

* `peek(key)`

Expand Down

0 comments on commit faae15c

Please sign in to comment.