{"library":"dnscache","type":"library","category":null,"description":"dnscache is an unmaintained Node.js module (last published 7 years ago, current version 1.0.2) that transparently wraps the built-in `dns` module to provide an application-level caching layer for DNS lookup results. It operates on a GOF Proxy design pattern, intercepting all `require('dns')` calls to cache frequently accessed domain resolutions, aiming to reduce network latency and improve application performance. It offers configurable cache size and Time-To-Live (TTL) settings, and supports injecting a custom cache implementation. While it historically addressed Node.js's lack of built-in DNS caching, it is now largely superseded by more modern, actively maintained libraries and evolving Node.js DNS behaviors. There is no active release cadence, and it does not support modern ECMAScript Modules (ESM) syntax.","language":"javascript","status":"abandoned","version":"1.0.2","tags":["javascript","dnscache","dns"],"last_verified":"Wed May 27","install":[{"cmd":"npm install dnscache","imports":["const dnscache = require('dnscache');","const dns = require('dns');","dnscache({\n  \"enable\": true,\n  \"ttl\": 300,\n  \"cachesize\": 1000\n});"]},{"cmd":"yarn add dnscache","imports":[]},{"cmd":"pnpm add dnscache","imports":[]}],"homepage":null,"github":"https://github.com/yahoo/dnscache","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/dnscache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/dnscache/compatibility"}}