Comments (4)
I set it based on typical needs of the many dozens of microservices I've worked with recently. They typically only communicate with a dozen or so services. It is configurable so if you need more, you can change it.
As for an eviction event, that seems like a reasonable request. Do you want to create a PR?
from axios-cached-dns-resolve.
I'm bringing up this issue because I am seeing a weird error where the refresh metric is always zero. Somehow refresh is never happening and I'm trying to determine if it's due to the cache having over 100 entries or maybe somehow the entry get evicted before the refresh code runs.
from axios-cached-dns-resolve.
Yes I'll send a PR within the week
from axios-cached-dns-resolve.
So I came to an unfortunate conclusion behind why they refresh metric was 0.
When I set process.env.AXIOS_DNS_CACHE_TTL_MS
then this code doesn't run.
So instead of a PR for adding cache eviction events I'll instead be looking for where this bug is
For context, I set it to 30 seconds (process.env.AXIOS_DNS_CACHE_TTL_MS = 30 * 1000;
)
from axios-cached-dns-resolve.
Related Issues (18)
- Syntax error with version 1.x.x HOT 11
- Is it work with react native? HOT 1
- How can i use this package with typescript project (nest.js)? HOT 1
- my file is .mjs but I get the following HOT 4
- Can I get similar functionality from https://www.npmjs.com/package/dnscache? HOT 1
- SyntaxError: Unexpected token 'export' HOT 2
- Error: Unable to resolve module dns from axios-cached-dns-resolve.js HOT 1
- [Question] Non-ESM Support HOT 5
- Add fallback and alternate api for hooking this into global agent HOT 1
- [Transfer issues from Uptime Kuma] axios-cached-dns-resolve does not work well in some local networks like Tailscale/Wireguard. HOT 1
- getDnsCacheEntries always returning empty object HOT 2
- when used in electron, emits error: TypeError: logger.isLevelEnabled is not a function HOT 2
- Support for hostfile HOT 1
- SyntaxError: Unexpected token 'export' HOT 3
- When use in electron/web isomorphic code,it need to introduce on demand HOT 2
- Unable to use in ESM project (Node 20) HOT 1
- Export the library as a CommonJS module HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axios-cached-dns-resolve.