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.
1 parent 59fc6d5 commit dd98299Copy full SHA for dd98299
docs/examples/README.md
@@ -125,3 +125,18 @@ async function deleteRequest (port = 3001) {
125
}
126
127
```
128
+
129
+## Cacheable DNS Lookup
130
131
+### Using CacheableLookup to cache DNS lookups in undici
132
133
+```js
134
+import { Agent } from 'undici'
135
+import CacheableLookup from 'cacheable-lookup';
136
137
+const cacheable = new CacheableLookup(opts)
138
139
+const agent = new Agent({
140
+ connect: { lookup: cacheable.lookup }
141
+})
142
+```
0 commit comments