There was an error while loading. Please reload this page.
2 parents 84afaaf + c4c078f commit d0fe524Copy full SHA for d0fe524
README.md
@@ -55,13 +55,12 @@ var location = lookup.get('2001:4860:0:1001::3004:ef68');
55
56
## Options
57
### cache
58
-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:
59
60
```javascript
61
var lookup = maxmind.openSync('/path/to/GeoLite2.mmdb', {
62
cache: {
63
- max: 1000, // max items in cache
64
- maxAge: 1000 * 60 * 60 // life time in milliseconds
+ max: 500, // Max items in cache, by default it's 6000
65
}
66
});
67
lookup.get('1.1.1.1');
0 commit comments