Skip to content

Commit

Permalink
Merge pull request #83 from runk/runk-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
runk authored Dec 6, 2017
2 parents 84afaaf + c4c078f commit d0fe524
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@ var location = lookup.get('2001:4860:0:1001::3004:ef68');

## Options
### cache
Module uses [lru-cache](https://github.com/isaacs/node-lru-cache). You can configure its settings by doing following:
Module uses [tiny-lru](https://github.com/avoidwork/tiny-lru). You can configure its settings by doing following:

```javascript
var lookup = maxmind.openSync('/path/to/GeoLite2.mmdb', {
cache: {
max: 1000, // max items in cache
maxAge: 1000 * 60 * 60 // life time in milliseconds
max: 500, // Max items in cache, by default it's 6000
}
});
lookup.get('1.1.1.1');
Expand Down

0 comments on commit d0fe524

Please sign in to comment.