We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cache: true
1 parent 4a785c2 commit 9dbffcfCopy full SHA for 9dbffcf
index.js
@@ -286,6 +286,8 @@ class Resolver extends dns.promises.Resolver {
286
// if `cache: false` then caching is disabled
287
// but note that this doesn't disable `got` dnsCache which is separate
288
// so to turn that off, you need to supply `dnsCache: undefined` in `got` object (?)
289
+ if (this.options.cache === true) this.options.cache = new Map();
290
+
291
if (this.options.cache instanceof Map) {
292
// each of the types have their own Keyv with prefix
293
for (const type of this.constructor.TYPES) {
0 commit comments