untitled notebook

node v14.20.1
version: master
endpointsharetweet
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); }); });
Loading…

no comments

    sign in to comment