A DNS cache using ha-store!
- Smart TLRU cache
- Request coalescing and batching
- Insightful stats and events
- Lightweight, configurable, battle-tested
npm install ha-dns-cache
const DNSCache = require('ha-dns-cache')({ ttl: 30000, limit: 500 });
DNSCache.on('cacheHit', evt => console.log('cache-hit!', evt));
You can benchmark this library by running:
npm run bench
And compare with regular results:
npm run bench:no-cache
Please do! This is an open source project - if you see something that you want, open an issue or file a pull request.
I am always looking for more maintainers, as well.
Apache 2.0 (c) 2021 Frederic Charette