const CacheableLookup = require('cacheable-lookup');
const cacheable = new CacheableLookup();
cacheable.servers = ['1.1.1.1'];
const start = Date.now();
cacheable.lookup('google.com', () => {
const first = Date.now();
console.log(first - start);
cacheable.lookup('google.com', () => {
console.log(Date.now() - first);
});
});