@cacheable/net

High Performance Network Caching for Node.js with fetch, request, http 1.1, and http 2 support

codecov tests npm npm license

Features:

  • fetch from undici cache enabled via cacheable
  • fetch quick helpers such as get, post, put, and delete for easier development
  • request from undici cache enabled via cacheable
  • HTTP/1.1 and HTTP/2 caching support via Node.js http and https modules
  • RFC 7234 compliant HTTP caching for native Node.js HTTP/HTTPS requests
  • Drop in replacement for http https, fetch modules with caching enabled
  • DNS caching for dns.lookup and dns.resolve methods via cacheable
  • WHOIS caching for whois.lookup method via cacheable
  • Advanced key generation via built in hashing and custom key generation functions
  • Benchmarks for performance comparison
  • All the features of cacheable - layered caching, LRU, expiration, hooks, backed by Keyv, and more!
  • Highly Tested and Maintained on a regular basis with a focus on performance and reliability

Table of Contents

Getting Started

npm install @cacheable/net

How to Contribute

You can contribute by forking the repo and submitting a pull request. Please make sure to add tests and update the documentation. To learn more about how to contribute go to our main README https://github.com/jaredwray/cacheable. This will talk about how to Open a Pull Request, Ask a Question, or Post an Issue.

License and Copyright

MIT © Jared Wray