Socket
Socket
Sign inDemoInstall

ha-dns-cache

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ha-dns-cache

A DNS cache using [ha-store](https://github.com/fed135/ha-store)!


Version published
Weekly downloads
25
increased by92.31%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 20 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc