Skip to content

Commit d0fe524

Browse files
authored
Merge pull request #83 from runk/runk-patch-1
Update README.md
2 parents 84afaaf + c4c078f commit d0fe524

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,12 @@ var location = lookup.get('2001:4860:0:1001::3004:ef68');
5555

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

6060
```javascript
6161
var lookup = maxmind.openSync('/path/to/GeoLite2.mmdb', {
6262
cache: {
63-
max: 1000, // max items in cache
64-
maxAge: 1000 * 60 * 60 // life time in milliseconds
63+
max: 500, // Max items in cache, by default it's 6000
6564
}
6665
});
6766
lookup.get('1.1.1.1');

0 commit comments

Comments
 (0)