Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fed135/ha-dns-cache

Open more actions menu

Repository files navigation

ha-dns-cache

A DNS cache using ha-store!

  • Smart TLRU cache
  • Request coalescing and batching
  • Insightful stats and events
  • Lightweight, configurable, battle-tested

Installing

npm install ha-dns-cache

Usage

const DNSCache = require('ha-dns-cache')({ ttl: 30000, limit: 500 });

DNSCache.on('cacheHit', evt => console.log('cache-hit!', evt));

Testing

You can benchmark this library by running:

npm run bench

And compare with regular results:

npm run bench:no-cache

Contribute

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.

License

Apache 2.0 (c) 2021 Frederic Charette

About

A DNS cache using ha-store

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.